/* LKStudio premium visual layer — intentionally scoped to the optimized copy. */
:root {
  --studio-ink: #0a0a0d;
  --studio-ink-2: #15151b;
  --studio-paper: #f2f0eb;
  --studio-paper-2: #e8e5de;
  --studio-white: #ffffff;
  --studio-muted: #6d6a66;
  --studio-line: rgba(10, 10, 13, 0.12);
  --studio-violet: #7657ff;
  --studio-pink: #ff4f91;
  --studio-cyan: #38dfd1;
  --studio-lime: #c9ff6a;
  --studio-radius-xl: 36px;
  --studio-radius-lg: 26px;
  --studio-radius-md: 18px;
  --studio-shadow: 0 28px 80px rgba(13, 10, 28, 0.18);
  --studio-display: "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --studio-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --studio-mono: "SF Mono", "JetBrains Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--studio-ink);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--studio-ink);
  background: var(--studio-paper);
  font-family: var(--studio-text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  color: #09090c;
  background: var(--studio-lime);
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--studio-lime);
  outline-offset: 4px;
}

img,
video,
svg { max-width: 100%; }

.wrap {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

body > .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Background film: hero only, never a full-page reading distraction. */
.page-bg-video,
#hero-canvas,
.page-bg-scrim {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: max(780px, 100svh);
  pointer-events: none;
}

.page-bg-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  opacity: 0;
  filter: saturate(0.74) contrast(1.1) brightness(0.58);
  transition: opacity 1.2s ease;
}

.page-bg-video.is-ready { opacity: 0.78; }

#hero-canvas {
  z-index: 0;
  display: none;
}

#hero-canvas.fallback-active {
  display: block;
  opacity: 0.5;
}

.page-bg-scrim {
  z-index: 1;
  background:
    radial-gradient(circle at 16% 48%, rgba(118, 87, 255, 0.28), transparent 32%),
    radial-gradient(circle at 82% 44%, rgba(255, 79, 145, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(6, 6, 9, 0.48) 0%, rgba(6, 6, 9, 0.54) 56%, #0a0a0d 100%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.7) 0%, rgba(5, 5, 8, 0.18) 58%, rgba(5, 5, 8, 0.48) 100%);
}

body.fallback-mode .page-bg-scrim { background: inherit; }
body.fallback-mode h1,
body.fallback-mode .hero-sub,
body.fallback-mode .hero-desc { color: inherit; text-shadow: none; }

/* Navigation */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.84), rgba(7, 7, 11, 0));
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
}

nav.is-scrolled {
  background: rgba(8, 8, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
}

.nav-inner {
  height: 78px;
  padding: 0;
  color: #fff;
}

.nav-inner .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.nav-inner .nav-logo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.brand-type {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-type b {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand-type small {
  color: rgba(255, 255, 255, 0.48);
  font: 600 9px/1 var(--studio-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-inner .links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
}

.nav-inner .links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-inner .links a:hover,
.nav-inner .links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-inner > .btn-primary {
  padding: 10px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 999px !important;
  color: #09090c !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.nav-inner > .btn-primary:hover {
  color: #fff !important;
  background: var(--studio-violet) !important;
  border-color: var(--studio-violet) !important;
}

.nav-toggle {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff;
  background: rgba(255, 255, 255, 0.08) !important;
}

.nav-toggle span { background: #fff !important; }

/* Hero */
.hero {
  position: relative;
  min-height: max(780px, 100svh);
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.hero-content {
  width: min(1280px, calc(100% - 64px));
  max-width: none;
  min-height: max(780px, 100svh);
  margin: 0 auto;
  padding: 132px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: center;
  gap: clamp(44px, 7vw, 104px);
}

.hero-copy { position: relative; z-index: 2; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font: 650 11px/1 var(--studio-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker .dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 6px rgba(201, 255, 106, 0.11);
  background: var(--studio-lime);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: var(--studio-display);
  font-size: clamp(58px, 7.6vw, 112px);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: none;
}

.hero h1 > span { display: block; }

.hero h1 .grad {
  display: inline;
  color: transparent;
  background: linear-gradient(105deg, #fff 2%, #c9c5ff 34%, #ff85ae 77%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .grad::before { content: none; }

.hero-sub {
  max-width: 670px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--studio-text);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.72;
  text-shadow: none;
}

.hero-sub .grad {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

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

.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
  transform: translateZ(0);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.btn-primary {
  color: #0a0a0d;
  border: 1px solid var(--studio-lime);
  background: var(--studio-lime);
  box-shadow: 0 16px 40px rgba(201, 255, 106, 0.15);
}

.btn-primary:hover {
  color: #fff;
  border-color: var(--studio-violet);
  background: var(--studio-violet);
  box-shadow: 0 18px 40px rgba(118, 87, 255, 0.28);
  transform: translateY(-2px);
}

.hero .btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-proof {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-item {
  display: grid;
  gap: 3px;
}

.proof-item b {
  color: #fff;
  font: 650 24px/1 var(--studio-display);
  letter-spacing: -0.05em;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 560;
}

/* Hero product console */
.hero-visual {
  position: relative;
  z-index: 2;
  perspective: 1400px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 87, 255, 0.34), transparent 62%);
  filter: blur(26px);
}

.lab-window {
  position: relative;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  transform: rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}

.lab-topbar,
.lab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lab-topbar {
  height: 42px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.48);
  font: 600 10px/1 var(--studio-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-dots { display: flex; gap: 5px; }
.lab-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.lab-dots i:first-child { background: var(--studio-pink); }
.lab-dots i:nth-child(2) { background: #f9c74f; }
.lab-dots i:nth-child(3) { background: var(--studio-cyan); }

.lab-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--studio-lime);
}
.lab-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--studio-lime);
  box-shadow: 0 0 0 5px rgba(201, 255, 106, 0.1);
  animation: studio-pulse 1.8s ease-in-out infinite;
}

.lab-body {
  min-height: 490px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 79, 145, 0.18), transparent 34%),
    radial-gradient(circle at 0% 72%, rgba(56, 223, 209, 0.12), transparent 36%),
    rgba(5, 5, 9, 0.78);
}

.lab-label {
  color: rgba(255, 255, 255, 0.36);
  font: 650 10px/1 var(--studio-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-title {
  max-width: 340px;
  margin-top: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.lab-flow {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.flow-node {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.flow-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  font: 650 10px/1 var(--studio-mono);
}

.flow-copy { min-width: 0; display: grid; gap: 2px; }
.flow-copy b {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-copy small {
  color: rgba(255, 255, 255, 0.37);
  font-size: 10px;
}
.flow-state {
  color: var(--studio-lime);
  font: 600 9px/1 var(--studio-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flow-state.is-running { color: var(--studio-cyan); }

.lab-graph {
  position: relative;
  height: 118px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.lab-graph svg {
  position: absolute;
  inset: 14px 12px 8px;
  width: calc(100% - 24px);
  height: calc(100% - 22px);
}
.lab-graph path {
  fill: none;
  stroke: url(#studio-line-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
  animation: studio-dash 6s linear infinite;
}
.lab-graph circle { fill: var(--studio-lime); }

.lab-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.36);
  font: 600 9px/1.2 var(--studio-mono);
  letter-spacing: 0.06em;
}
.lab-footer b { color: rgba(255, 255, 255, 0.78); font-weight: 600; }

.hero-marquee {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 58px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 5, 8, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: studio-marquee 32s linear infinite;
}

.hero-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.48);
  font: 600 10px/1 var(--studio-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-marquee span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* Global section language */
.section,
.buy-section,
.tut-section,
.trial-section {
  position: relative;
  margin: 0;
  padding: clamp(96px, 11vw, 158px) 0;
  border: 0;
  border-radius: 0;
  scroll-margin-top: 82px;
}

.section.alt,
.buy-section.alt,
.tut-section.alt,
.trial-section.alt {
  margin: 0;
  padding: clamp(96px, 11vw, 158px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sec-head {
  width: 100%;
  max-width: 900px;
  margin: 0 0 clamp(42px, 6vw, 72px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--studio-violet);
  background: transparent;
  font: 720 10px/1 var(--studio-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.sec-head .sec-h2 {
  max-width: 860px;
  margin: 18px 0 20px;
  color: var(--studio-ink);
  font-family: var(--studio-display);
  font-size: clamp(44px, 6.3vw, 84px);
  font-weight: 700;
  letter-spacing: -0.068em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: none;
}

.sec-head .sec-h2 .grad {
  color: transparent;
  background: linear-gradient(105deg, var(--studio-violet), var(--studio-pink) 72%, #ff9f66);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.sec-head .sec-h2 .grad::before { content: none; }

.sec-head .sec-lead {
  max-width: 720px;
  margin: 0;
  color: var(--studio-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.72;
  text-shadow: none;
}

/* Product cards */
#products {
  padding-top: clamp(112px, 13vw, 184px);
  background: var(--studio-paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid.two {
  grid-template-columns: 1.34fr 0.66fr;
  gap: 22px;
}

a.card,
.card {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: var(--studio-radius-lg);
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  isolation: isolate;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), border-color 260ms ease, box-shadow 420ms ease;
}

a.card:hover,
.card:hover {
  z-index: 2;
  border-color: rgba(10, 10, 13, 0.22);
  box-shadow: 0 28px 80px rgba(15, 12, 35, 0.16);
  transform: translateY(-7px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 10%), rgba(255, 255, 255, 0.2), transparent 46%);
  opacity: 0;
  transition: opacity 260ms ease;
}

a.card:hover::before { opacity: 1; }

.card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c-art-bg, transparent);
  pointer-events: none;
}

.card-art::after {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.08) 40%, rgba(5, 5, 8, 0.83) 100%);
}

.card-art svg {
  inset: -8% -8% auto auto;
  width: 84%;
  height: 84%;
  opacity: 0.72;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1), opacity 420ms ease;
}

a.card:hover .card-art svg { transform: scale(1.08) rotate(1.5deg); opacity: 0.9; }

.card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.2vw, 44px);
  color: #fff;
}

.card-tag {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 650 9px/1 var(--studio-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-title {
  color: #fff;
  font-family: var(--studio-display);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 1;
}

.card-sub {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.68;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 14px;
  padding: 0;
  color: #fff;
  font: 640 11px/1 var(--studio-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 220ms ease, color 220ms ease;
}

a.card:hover .card-arrow { gap: 13px; color: var(--studio-lime); }

#products a.card:first-child {
  min-height: 580px;
  background: linear-gradient(145deg, #422578, #1a102e 66%);
}

#products a.card:last-child {
  min-height: 580px;
  background: linear-gradient(145deg, #7f315d, #23101e 68%);
}

#products a.card .card-art svg {
  width: 108%;
  height: 92%;
  opacity: 0.58;
}

#products a.card .card-art::after {
  background: linear-gradient(160deg, rgba(5, 5, 8, 0.02), rgba(5, 5, 8, 0.12) 38%, rgba(5, 5, 8, 0.9) 100%);
}

#products .card-title { font-size: clamp(38px, 4.5vw, 66px); }

/* Opensource cards */
#opensource {
  background: var(--studio-paper);
  border-top: 1px solid rgba(10, 10, 13, 0.08);
}

#opensource .grid { gap: 18px; }

#opensource .card {
  min-height: 410px;
  background: #fbfaf7;
}

#opensource .card-art::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 42%, #fbfaf7 100%);
}

#opensource .card-art svg {
  width: 100%;
  height: 72%;
  opacity: 0.9;
}

#opensource .card-body { color: var(--studio-ink); }

#opensource .card-tag {
  color: var(--c-accent, var(--studio-violet));
  border-color: color-mix(in srgb, var(--c-accent, var(--studio-violet)) 25%, transparent);
  background: color-mix(in srgb, var(--c-accent, var(--studio-violet)) 8%, #fff);
}

#opensource .card-title {
  color: var(--studio-ink);
  font-size: clamp(28px, 3vw, 42px);
}

#opensource .card-sub { color: var(--studio-muted); }

#opensource .card-arrow { color: var(--c-accent, var(--studio-violet)); }

/* Demos: dark modular gallery */
#demos {
  color: #fff;
  background: #0b0b10;
}

#demos::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(118, 87, 255, 0.16), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(255, 79, 145, 0.12), transparent 32%);
}

#demos .sec-head,
#demos .demo-grid { position: relative; z-index: 1; }

#demos .section-label { color: var(--studio-cyan); }
#demos .sec-head .sec-h2 { color: #fff; }
#demos .sec-head .sec-lead { color: rgba(255, 255, 255, 0.54); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.demo-card {
  position: relative;
  grid-column: span 2;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--studio-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, background 240ms ease;
}

.demo-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, 0.5) 46%, rgba(255, 255, 255, 0.5) 50%, transparent 52%);
  transform: rotate(-45deg);
  transition: transform 260ms ease, border-color 260ms ease;
}

.demo-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  transform: translateY(-6px);
}

.demo-card:hover::after {
  border-color: var(--studio-lime);
  transform: rotate(0deg);
}

.demo-card:nth-child(1) { grid-column: span 4; min-height: 380px; }
.demo-card:nth-child(2) { grid-column: span 2; }
.demo-card:nth-child(3) { grid-column: span 2; }
.demo-card:nth-child(4) { grid-column: span 2; }
.demo-card:nth-child(5) { grid-column: span 3; }
.demo-card:nth-child(6) { grid-column: span 3; }

.demo-card .demo-kicker {
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font: 650 9px/1 var(--studio-mono);
  letter-spacing: 0.13em;
}

.demo-card .demo-title {
  max-width: 560px;
  margin-top: 24px;
  color: #fff;
  font-family: var(--studio-display);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.demo-card:nth-child(1) .demo-title { font-size: clamp(34px, 4vw, 56px); }

.demo-card .demo-desc {
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
}

.demo-links {
  gap: 8px;
  margin-top: 28px;
}

.demo-link {
  padding: 7px 12px;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 650;
}

.demo-link:hover {
  border-color: var(--studio-lime);
  color: #0a0a0d;
  background: var(--studio-lime);
}

/* Purchase */
#buy {
  background: var(--studio-paper);
  border-radius: clamp(34px, 5vw, 68px) clamp(34px, 5vw, 68px) 0 0;
}

.buy-cards {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.buy-card {
  position: relative;
  min-height: 480px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 13, 0.11);
  border-radius: var(--studio-radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  isolation: isolate;
  transition: transform 380ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease;
}

.buy-card:hover {
  border-color: rgba(10, 10, 13, 0.24);
  background: #fff;
  transform: translateY(-6px);
}

.buy-art { opacity: 0.22; }

.buy-art::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #fff 76%);
}

.buy-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--c-accent, var(--studio-violet));
  background: color-mix(in srgb, var(--c-accent, var(--studio-violet)) 9%, #fff);
}

.buy-name {
  margin-top: 10px;
  color: var(--studio-ink);
  font-family: var(--studio-display);
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.05em;
}

.buy-desc {
  max-width: 390px;
  margin-top: 8px;
  color: var(--studio-muted);
  font-size: 14px;
  line-height: 1.68;
}

.buy-contact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.buy-contact {
  padding: 14px;
  border: 1px solid rgba(10, 10, 13, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.buy-contact-role {
  padding: 4px 8px;
  font-size: 9px;
}

.buy-contact-note {
  min-height: 32px;
  color: var(--studio-muted);
  font-size: 11px;
}

.buy-qr {
  width: 100%;
  height: 118px;
  margin-top: 8px;
  border-radius: 12px;
  object-fit: cover;
}

.buy-link-list { gap: 8px; }

.buy-mini-link {
  gap: 12px;
  padding: 10px 12px;
  border-color: rgba(10, 10, 13, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.buy-mini-link:hover {
  border-color: var(--c-accent, var(--studio-violet));
  color: var(--c-accent, var(--studio-violet));
  background: #fff;
  transform: translateX(4px);
}

.buy-code-tip {
  margin-top: 16px;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Tutorials */
#tutorials {
  padding-top: clamp(112px, 13vw, 176px);
  background: var(--studio-paper-2);
}

.tut-part-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 58px 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(10, 10, 13, 0.16);
  color: var(--studio-ink);
  font-family: var(--studio-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 680;
  letter-spacing: -0.055em;
}

.tut-part-label .part-num {
  color: var(--studio-muted);
  font: 650 10px/1 var(--studio-mono);
  letter-spacing: 0.15em;
  text-shadow: none;
}

.tut-group { margin-top: 46px; }

.tut-group-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.tut-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(10, 10, 13, 0.12);
  border-radius: 14px;
  color: var(--tg-accent, var(--studio-violet));
  background: rgba(255, 255, 255, 0.48);
}

.tut-badge svg { width: 20px; height: 20px; }

.tut-group-name {
  color: var(--studio-ink);
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.tut-group-desc {
  margin-top: 3px;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tut-group-count {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--studio-muted);
  background: rgba(10, 10, 13, 0.055);
  font: 600 9px/1 var(--studio-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tut-card {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  transition: transform 260ms ease, border-color 220ms ease, background 220ms ease;
}

.tut-card::before { display: none; }

.tut-card:hover {
  border-color: rgba(10, 10, 13, 0.22);
  background: #fff;
  box-shadow: none;
  transform: translateY(-4px);
}

.tut-card-head { display: flex; align-items: flex-start; gap: 12px; }

.tut-card-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--tg-accent, var(--studio-violet));
  background: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 8%, #fff);
}

.tut-card-icon svg { width: 18px; height: 18px; }

.tut-title {
  color: var(--studio-ink);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.tut-links { display: flex; flex-wrap: wrap; gap: 7px; }

.tut-links a { text-decoration: none; }

.tut-links span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: 999px;
  color: var(--studio-muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 680;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.tut-links a:hover span {
  border-color: var(--studio-ink);
  color: var(--studio-ink);
  background: #fff;
  transform: translateY(-2px);
}

.tut-links svg { width: 13px; height: 13px; }

.tut-more {
  margin-top: 24px;
  padding: 0;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.tut-more summary {
  padding: 20px 24px;
  color: var(--studio-ink);
  font-size: 15px;
}

.tut-more summary::after {
  color: #fff;
  background: var(--studio-ink);
}

.tut-more[open] summary { border-bottom: 1px solid rgba(10, 10, 13, 0.1); }

/* Trial */
#trial {
  color: #fff;
  background: #0b0b10;
}

#trial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 255, 106, 0.09), transparent 30%),
    radial-gradient(circle at 78% 80%, rgba(118, 87, 255, 0.2), transparent 34%);
}

#trial .sec-head,
#trial .trial-cards { position: relative; z-index: 1; }
#trial .section-label { color: var(--studio-lime); }
#trial .sec-head .sec-h2 { color: #fff; }
#trial .sec-head .sec-lead { color: rgba(255, 255, 255, 0.52); }

.trial-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--studio-radius-lg);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.trial-product {
  color: #fff;
  font-family: var(--studio-display);
  font-size: 32px;
  font-weight: 680;
  letter-spacing: -0.05em;
}

.trial-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.trial-step { display: flex; gap: 12px; align-items: flex-start; }

.step-num {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #09090c;
  background: var(--studio-lime);
  font: 700 11px/1 var(--studio-mono);
}

.step-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.copy-box {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.copy-label {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  font: 650 9px/1 var(--studio-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-text {
  max-height: 260px;
  overflow: auto;
  padding: 18px;
  color: rgba(255, 255, 255, 0.62);
  font: 11.5px/1.72 var(--studio-mono);
  white-space: pre-wrap;
}

.copy-btn {
  margin: 0 18px 18px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.copy-btn:hover {
  border-color: var(--studio-lime);
  color: #09090c;
  background: var(--studio-lime);
}

.share-tip {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.trial-btn {
  margin-top: 20px;
  padding: 13px 20px;
  border-radius: 999px;
  color: #09090c;
  background: var(--studio-lime);
  font-size: 12px;
  font-weight: 700;
}

.trial-btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201,255,106,.15); }

/* Timeline as a horizontal editorial track */
#timeline {
  background: var(--studio-paper);
  overflow: hidden;
}

.timeline {
  position: relative;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 4px 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.timeline::before { display: none; }

.timeline-item {
  position: relative;
  display: flex;
  flex: 0 0 350px;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  scroll-snap-align: start;
  transition: transform 260ms ease, border-color 220ms ease, background 220ms ease;
}

.timeline-item::before { display: none; }

.timeline-item:hover {
  border-color: rgba(10, 10, 13, 0.22);
  background: #fff;
  box-shadow: none;
  transform: translateY(-4px);
}

.timeline-date {
  color: var(--studio-violet);
  font: 650 10px/1 var(--studio-mono);
  letter-spacing: 0.1em;
}

.timeline-date::after { display: none; }

.timeline-title {
  color: var(--studio-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.timeline-text {
  margin-top: 10px;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.7;
}

.timeline-links { margin-top: auto; gap: 7px; }

.timeline-links a {
  padding: 7px 10px;
  color: var(--studio-muted);
  background: rgba(10, 10, 13, 0.055);
  font-size: 10px;
}

.timeline-links a:hover { color: #fff; background: var(--studio-ink); }

/* Footer */
.site-footer {
  margin: 0;
  padding: 92px 0 34px;
  color: #fff;
  border: 0;
  background: #08080b;
  text-align: left;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
  padding-bottom: 54px;
}

.footer-brand .footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  filter: grayscale(1) brightness(1.15);
}

.footer-name {
  color: #fff;
  font-family: var(--studio-display);
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.05em;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.42);
  font: 600 10px/1 var(--studio-mono);
  letter-spacing: 0.12em;
}

.footer-title {
  color: rgba(255, 255, 255, 0.38) !important;
  font: 650 9px/1 var(--studio-mono) !important;
  letter-spacing: 0.14em !important;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 13px !important;
}

.footer-col a:hover { color: #fff !important; }

.copy-wx {
  color: var(--studio-lime);
  background: rgba(201, 255, 106, 0.1);
}

.copy-wx:hover { background: rgba(201, 255, 106, 0.18); }

.footer-bottom {
  padding-top: 24px;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  text-align: left;
  font: 550 10px/1 var(--studio-mono);
  letter-spacing: 0.06em;
}

/* Mobile purchase rail */
.mobile-buy-bar {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(8, 8, 12, 0.92) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-buy-bar .mobile-buy-sub {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mobile-buy-bar .mobile-buy-main {
  color: #09090c;
  background: var(--studio-lime) !important;
}

/* Reveal system */
.studio-js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.studio-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 760ms cubic-bezier(.2,.8,.2,1), transform 760ms cubic-bezier(.2,.8,.2,1);
}

.studio-js .reveal[data-delay="1"] { transition-delay: 80ms; }
.studio-js .reveal[data-delay="2"] { transition-delay: 160ms; }
.studio-js .reveal[data-delay="3"] { transition-delay: 240ms; }

/* Responsive */
@media (max-width: 1180px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 48px;
  }

  .hero h1 { font-size: clamp(52px, 7vw, 82px); }
  .lab-body { min-height: 440px; }
  .buy-cards { grid-template-columns: 1.2fr 1fr 1fr; }
  .buy-contact-list { grid-template-columns: 1fr; }
  .buy-qr { height: 104px; }
}

@media (max-width: 980px) {
  .wrap { width: min(100% - 40px, 860px); }
  .hero-content { width: min(100% - 40px, 860px); }
  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 54px;
    padding-top: 132px;
    padding-bottom: 104px;
  }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(54px, 10vw, 86px); }
  .hero-visual { width: min(100%, 640px); }
  .hero-marquee { display: none; }
  .grid,
  #opensource .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr; }
  #products a.card:first-child,
  #products a.card:last-child { min-height: 520px; }
  .demo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .demo-card,
  .demo-card:nth-child(n) { grid-column: span 2; min-height: 300px; }
  .demo-card:nth-child(1) { grid-column: span 4; min-height: 360px; }
  .demo-card:nth-child(5),
  .demo-card:nth-child(6) { grid-column: span 2; }
  .buy-cards { grid-template-columns: 1fr 1fr; }
  .buy-card:first-child { grid-column: 1 / -1; min-height: 390px; }
  .buy-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-qr { height: 132px; }
  .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-inner { height: 70px; }
  .brand-type small { display: none; }
  .nav-inner > .btn-primary { display: none; }
  .nav-inner .links {
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(8, 8, 12, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
  .nav-inner .links a {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
  }
  .nav-inner .links a:last-child { border-bottom: 0; }
  .hero { min-height: 0; }
  .hero-content {
    min-height: 0;
    padding-top: 118px;
    padding-bottom: 76px;
  }
  .hero-proof { gap: 22px; }
  .lab-body { min-height: 390px; padding: 20px; }
  .lab-title { font-size: 21px; }
  .section,
  .buy-section,
  .tut-section,
  .trial-section { padding: 84px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head .sec-h2 { font-size: clamp(42px, 10vw, 64px); }
  .card-title,
  #products .card-title { font-size: clamp(34px, 8vw, 50px); }
  .demo-card:nth-child(n) { grid-column: span 4; }
  .buy-cards { grid-template-columns: 1fr; }
  .buy-card:first-child { grid-column: auto; }
  .buy-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trial-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap,
  .hero-content { width: min(100% - 28px, 560px); }
  .hero-content { padding-top: 108px; gap: 42px; }
  .kicker { margin-bottom: 18px; font-size: 9px; letter-spacing: 0.14em; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); letter-spacing: -0.07em; }
  .hero-sub { margin-top: 22px; font-size: 15px; line-height: 1.68; }
  .hero-cta { gap: 9px; margin-top: 28px; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { flex: 1 1 calc(50% - 5px); min-height: 46px; padding-inline: 14px; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
  .proof-item b { font-size: 19px; }
  .proof-item span { font-size: 9px; }
  .hero-visual { width: 100%; }
  .lab-window { border-radius: 24px; }
  .lab-body { min-height: 350px; border-radius: 17px; }
  .flow-node { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 11px; }
  .flow-index { width: 28px; height: 28px; }
  .lab-graph { height: 96px; }
  .section,
  .buy-section,
  .tut-section,
  .trial-section { padding: 72px 0; }
  .sec-head .sec-h2 { font-size: clamp(38px, 12vw, 54px); line-height: 1; }
  .sec-head .sec-lead { font-size: 15px; }
  .grid,
  #opensource .grid { grid-template-columns: 1fr; }
  #products .grid.two a.card,
  #products a.card:first-child,
  #products a.card:last-child { min-height: 460px; }
  .card-body { padding: 24px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card,
  .demo-card:nth-child(n) { grid-column: auto; min-height: 280px; padding: 24px; }
  .demo-card:nth-child(1) { min-height: 330px; }
  .demo-card .demo-title { font-size: 28px; }
  .demo-card:nth-child(1) .demo-title { font-size: 36px; }
  .buy-card { min-height: auto; padding: 24px; }
  .buy-contact-list { grid-template-columns: 1fr; }
  .buy-qr { height: 144px; object-fit: contain; background: #fff; }
  .tut-grid { grid-template-columns: 1fr; }
  .tut-group-head { grid-template-columns: 40px minmax(0, 1fr); }
  .tut-group-count { grid-column: 2; width: fit-content; }
  .tut-badge { width: 40px; height: 40px; }
  .tut-card { min-height: 118px; }
  .trial-card { padding: 24px; }
  .trial-product { font-size: 28px; }
  .timeline-item { flex-basis: 82vw; min-height: 300px; }
  .site-footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 44px; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { flex-basis: 100%; }
  .lab-live { display: none; }
  .lab-body { padding: 16px; }
  .flow-copy small { display: none; }
  .sec-head .sec-h2 { font-size: 36px; }
  .buy-qr { height: 128px; }
}

@media (hover: none) {
  .card::before { display: none; }
  a.card:hover,
  .card:hover,
  .demo-card:hover,
  .buy-card:hover,
  .tut-card:hover,
  .timeline-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .studio-js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@keyframes studio-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes studio-dash {
  to { stroke-dashoffset: -70; }
}

@keyframes studio-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

/* Runtime-safe overrides for the original video fallback state. */
body.fallback-mode .page-bg-scrim {
  background:
    radial-gradient(circle at 16% 48%, rgba(118, 87, 255, 0.3), transparent 32%),
    radial-gradient(circle at 82% 44%, rgba(255, 79, 145, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(6, 6, 9, 0.72) 0%, rgba(6, 6, 9, 0.68) 56%, #0a0a0d 100%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.8) 0%, rgba(5, 5, 8, 0.34) 58%, rgba(5, 5, 8, 0.66) 100%);
}

body.fallback-mode .page-bg-video { filter: saturate(0.68) contrast(1.08) brightness(0.42); }
body.fallback-mode .hero h1 { color: #fff; }
body.fallback-mode .hero h1 .grad { color: transparent; }
body.fallback-mode .hero-sub { color: rgba(255,255,255,.68); }
body.fallback-mode .kicker { color: rgba(255,255,255,.64); }
body.fallback-mode .hero .btn-secondary { color: #fff; }

@media (max-width: 820px) {
  .nav-inner .links { display: none; }
  .nav-inner.open .links { display: flex; }
}

/* Keep section content aligned to the same optical grid as the hero. */
.section,
.buy-section,
.tut-section,
.trial-section {
  padding-left: max(32px, calc((100% - 1280px) / 2));
  padding-right: max(32px, calc((100% - 1280px) / 2));
}

#demos .demo-link,
#demos .demo-link.wechat,
#demos .demo-link.xhs,
#demos .demo-link.douyin,
#demos .demo-link.bili {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

#demos .demo-link:hover,
#demos .demo-link.wechat:hover,
#demos .demo-link.xhs:hover,
#demos .demo-link.douyin:hover,
#demos .demo-link.bili:hover {
  border-color: var(--studio-lime);
  color: #09090c;
  background: var(--studio-lime);
}

#opensource .card-art svg {
  width: 100%;
  height: 78%;
  opacity: 0.76;
}

.tut-links span {
  border-color: rgba(10, 10, 13, 0.16);
  color: #4e4b47;
  background: #fff;
}

.tut-links span svg { color: #4e4b47; }

@media (max-width: 640px) {
  .section,
  .buy-section,
  .tut-section,
  .trial-section {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Final type calibration: keep the editorial impact, remove oversized type. */
.hero h1 { font-size: clamp(48px, 6.2vw, 88px); }
.sec-head .sec-h2 { font-size: clamp(38px, 5.35vw, 68px); }
#products .card-title { font-size: clamp(32px, 3.8vw, 52px); }
.card-title { font-size: clamp(27px, 3vw, 42px); }
.demo-card .demo-title { font-size: clamp(22px, 2.35vw, 32px); }
.demo-card:nth-child(1) .demo-title { font-size: clamp(28px, 3.35vw, 44px); }
.buy-name { font-size: 24px; }
.trial-product { font-size: 28px; }
.tut-part-label { font-size: clamp(26px, 3vw, 40px); }
.timeline-title { font-size: 18px; }

/* Timeline: visible controls, drag support and a live progress indicator. */
#timeline { overflow: visible; }

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -34px 0 22px;
}

.timeline-progress {
  position: relative;
  width: min(420px, 52vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.1);
}

.timeline-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--studio-violet), var(--studio-pink));
  transform-origin: left center;
  transition: width 160ms ease, transform 160ms ease;
}

.timeline-actions { display: flex; gap: 8px; }

.timeline-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(10, 10, 13, 0.14);
  border-radius: 50%;
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.timeline-btn:hover:not(:disabled) {
  border-color: var(--studio-ink);
  color: #fff;
  background: var(--studio-ink);
  transform: translateY(-2px);
}

.timeline-btn:disabled { cursor: not-allowed; opacity: 0.28; }

.timeline {
  cursor: grab;
  padding-top: 8px;
  padding-bottom: 34px;
  scrollbar-color: rgba(118, 87, 255, 0.75) rgba(10, 10, 13, 0.08);
  scrollbar-width: auto;
}

.timeline.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.timeline::-webkit-scrollbar { height: 8px; }
.timeline::-webkit-scrollbar-track { border-radius: 999px; background: rgba(10, 10, 13, 0.08); }
.timeline::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(118, 87, 255, 0.75); }

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(40px, 11.6vw, 54px); }
  .sec-head .sec-h2 { font-size: clamp(32px, 9.8vw, 44px); }
  .demo-card:nth-child(1) .demo-title { font-size: 30px; }
  .timeline-toolbar { margin-top: -16px; }
  .timeline-progress { width: 62vw; }
  .timeline-btn { width: 42px; height: 42px; }
}

/* Second-pass type calibration: calmer, more editorial, less poster-like. */
.hero h1 { font-size: clamp(46px, 5.55vw, 80px); }
.sec-head .sec-h2 { font-size: clamp(36px, 4.75vw, 60px); }
#products .card-title { font-size: clamp(30px, 3.45vw, 48px); }
.demo-card:nth-child(1) .demo-title { font-size: clamp(27px, 3.05vw, 40px); }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(39px, 10.8vw, 50px); }
  .sec-head .sec-h2 { font-size: clamp(31px, 9.3vw, 42px); }
}

/* ===== Product cards: tighter, denser and more purposeful ===== */
#products a.card:first-child,
#products a.card:last-child {
  min-height: 480px;
}

#products .card-body {
  gap: 13px;
  padding: clamp(28px, 3vw, 40px);
}

.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.product-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.065);
  font: 620 10px/1 var(--studio-mono);
  letter-spacing: 0.035em;
}

@media (max-width: 640px) {
  #products a.card:first-child,
  #products a.card:last-child { min-height: 430px; }
  .product-highlights span { padding: 5px 8px; font-size: 9px; }
}

/* ===== QR codes: preserve the complete square and improve scan contrast ===== */
.buy-contact {
  padding: 16px;
  overflow: visible;
}

.buy-contact-list { align-items: stretch; }

.buy-qr {
  display: block;
  width: 100%;
  height: clamp(156px, 13vw, 188px);
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(10, 10, 13, 0.13);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 640px) {
  .buy-qr { height: 180px; padding: 10px; }
}

/* ===== Tutorial cards: restore product color and a clear group rhythm ===== */
#tutorials {
  background: linear-gradient(180deg, #ebe8e1 0%, #f2f0eb 100%);
}

#tutorials .tut-group.lkdock { --tg-accent: #7657ff; --tg-soft: rgba(118, 87, 255, 0.1); --tg-soft-border: rgba(118, 87, 255, 0.2); --tg-grad: linear-gradient(135deg, #7657ff, #a78bfa); }
#tutorials .tut-group.lkflow { --tg-accent: #2563eb; --tg-soft: rgba(37, 99, 235, 0.09); --tg-soft-border: rgba(37, 99, 235, 0.2); --tg-grad: linear-gradient(135deg, #2563eb, #38bdf8); }
#tutorials .tut-group.fn-transcript { --tg-accent: #0f9f8f; --tg-soft: rgba(15, 159, 143, 0.09); --tg-soft-border: rgba(15, 159, 143, 0.2); --tg-grad: linear-gradient(135deg, #0f9f8f, #34d399); }
#tutorials .tut-group.fn-singlecell { --tg-accent: #db2777; --tg-soft: rgba(219, 39, 119, 0.09); --tg-soft-border: rgba(219, 39, 119, 0.2); --tg-grad: linear-gradient(135deg, #db2777, #f472b6); }
#tutorials .tut-group.fn-spatial { --tg-accent: #4f46e5; --tg-soft: rgba(79, 70, 229, 0.09); --tg-soft-border: rgba(79, 70, 229, 0.2); --tg-grad: linear-gradient(135deg, #4f46e5, #818cf8); }
#tutorials .tut-group.fn-mr { --tg-accent: #ea580c; --tg-soft: rgba(234, 88, 12, 0.09); --tg-soft-border: rgba(234, 88, 12, 0.2); --tg-grad: linear-gradient(135deg, #ea580c, #fbbf24); }

#tutorials .tut-group-head {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 18%, transparent);
  border-radius: 19px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 8%, #fff), rgba(255,255,255,.55));
}

#tutorials .tut-badge {
  color: #fff;
  border: 0;
  background: var(--tg-grad);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 22%, transparent);
}

#tutorials .tut-card {
  border-color: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 17%, rgba(10,10,13,.1));
  background: #fff;
  background: linear-gradient(145deg, #fff 28%, color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 7%, #fff));
}

#tutorials .tut-card:hover {
  border-color: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 42%, transparent);
  background: #fff;
}

body #tutorials .tut-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  display: block;
  height: 4px;
  background: var(--tg-grad);
  opacity: 0.9;
}

#tutorials .tut-card-icon {
  color: var(--tg-accent, var(--studio-violet));
  background: var(--tg-soft, rgba(118,87,255,.08));
  border: 1px solid var(--tg-soft-border, rgba(118,87,255,.16));
}

#tutorials .tut-links span {
  border-color: var(--tg-soft-border, rgba(118,87,255,.18));
  color: var(--tg-accent, var(--studio-violet));
  background: #fff;
}

#tutorials .tut-links a:hover span {
  border-color: var(--tg-accent, var(--studio-violet));
  color: #fff;
  background: var(--tg-accent, var(--studio-violet));
}

/* ===== Service ecosystem: a credible first step toward cloud, community and support ===== */
.platform-section {
  background: #ece9e2;
  border-top: 1px solid rgba(10, 10, 13, 0.08);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  position: relative;
  grid-column: span 3;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 13, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(10, 10, 13, 0.05);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease, box-shadow 360ms ease;
}

.platform-card:hover {
  border-color: rgba(10, 10, 13, 0.24);
  background: #fff;
  box-shadow: 0 28px 74px rgba(10, 10, 13, 0.1);
  transform: translateY(-6px);
}

.platform-card--cloud {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 482px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 255, 106, 0.12), transparent 30%),
    radial-gradient(circle at 12% 84%, rgba(118, 87, 255, 0.28), transparent 38%),
    #0b0b10;
}

.platform-card--cloud::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -16%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.025), 0 0 0 88px rgba(255,255,255,.018);
}

.platform-card:nth-child(2),
.platform-card--documentation { grid-column: span 6; }

.platform-kicker {
  color: var(--studio-violet);
  font: 680 9px/1 var(--studio-mono);
  letter-spacing: 0.15em;
}

.platform-card--cloud .platform-kicker { color: var(--studio-lime); }

.platform-card h3 {
  max-width: 560px;
  margin: 18px 0 12px;
  font-family: var(--studio-display);
  font-size: clamp(25px, 2.8vw, 40px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.platform-card p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--studio-muted);
  font-size: 14px;
  line-height: 1.72;
}

.platform-card--cloud p { color: rgba(255,255,255,.58); }

.platform-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.platform-card li b { color: #fff; font-size: 13px; font-weight: 600; }

.platform-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #4f4b46;
  background: rgba(10, 10, 13, 0.055);
  font: 620 9px/1 var(--studio-mono);
  letter-spacing: 0.04em;
}

.platform-card--cloud .platform-status {
  position: relative;
  z-index: 1;
  color: #09090c;
  background: var(--studio-lime);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 16px;
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.platform-link:hover { gap: 10px; color: var(--studio-violet); }

.platform-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.platform-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(10, 10, 13, 0.1);
  border-radius: 22px;
  background: rgba(255,255,255,.48);
}

.platform-note span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--studio-ink);
  font: 650 9px/1 var(--studio-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.platform-note p { color: var(--studio-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 980px) {
  .platform-card,
  .platform-card:nth-child(2),
  .platform-card--documentation { grid-column: span 3; }
  .platform-card--cloud { grid-column: span 6; grid-row: auto; }
}

@media (max-width: 640px) {
  .platform-card,
  .platform-card:nth-child(2),
  .platform-card--cloud,
  .platform-card--documentation {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 24px;
  }
  .platform-card--cloud { min-height: 420px; }
  .platform-note { grid-template-columns: 1fr; }
}

/* Stronger tutorial color system: make group identity visible at a glance. */
#tutorials .tut-group-head {
  border-color: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 34%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 18%, #fff), rgba(255,255,255,.7));
}
#tutorials .tut-card {
  border-color: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 34%, transparent);
  background: linear-gradient(145deg, #fff 8%, color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 17%, #fff) 100%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 8%, transparent);
}
#tutorials .tut-card:hover {
  border-color: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 62%, transparent);
  background: #fff;
}
#tutorials .tut-card::before { height: 5px; opacity: 1; }
#tutorials .tut-card-icon {
  color: #fff;
  border-color: transparent;
  background: var(--tg-grad);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 22%, transparent);
}
#tutorials .tut-links span {
  color: var(--tg-accent, var(--studio-violet));
  background: color-mix(in srgb, var(--tg-accent, var(--studio-violet)) 8%, #fff);
}
#tutorials .tut-links a:hover span { color: #fff; background: var(--tg-accent, var(--studio-violet)); }

/* Final palette calibration: cool ivory base, vivid lilac/coral accents, clean ink. */
:root {
  --studio-paper: #f3f5f1;
  --studio-paper-2: #e8eee9;
  --studio-violet: #6658f5;
  --studio-pink: #f25f9b;
  --studio-cyan: #2fcabb;
  --studio-lime: #d1ff72;
}
body { background: var(--studio-paper); }
#products { background: #f3f5f1; }
#opensource { background: #eef4ee; }
#buy { background: linear-gradient(180deg, #f3f5f1, #edf0eb); }
#tutorials { background: linear-gradient(180deg, #e8efeb, #f3f5f1); }
.platform-section { background: #edf3ee; }
#timeline { background: #f3f5f1; }

/* Hero proof: keep the platform compatibility line on one desktop line. */
.hero-proof .proof-item-platform span { white-space: nowrap; }
@media (max-width: 640px) {
  .hero-proof .proof-item-platform span { white-space: normal; }
}

/* Keep the hero console headline on one line as requested. */
.lab-title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(17px, 1.55vw, 22px);
  letter-spacing: -0.035em;
}
@media (max-width: 640px) {
  .lab-title { font-size: clamp(14px, 4.1vw, 17px); }
}

/* Homepage publication reward teaser */
.literature-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 48px;
  align-items: end;
}
.literature-teaser .sec-head { margin-bottom: 0; }
.literature-teaser-copy .sec-h2 { margin-bottom: 18px; }
.literature-teaser-link { display: inline-flex; margin-top: 24px; padding: 10px 16px; border-radius: 999px; color: #09090c; background: var(--studio-lime); font-size: 12px; font-weight: 750; text-decoration: none; }
.literature-teaser-link:hover { background: #fff; transform: translateY(-2px); }
.literature-teaser-stats { display: grid; gap: 10px; }
.literature-teaser-stats div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 18px; border: 1px solid rgba(10,10,13,.1); border-radius: 18px; background: rgba(255,255,255,.72); }
.literature-teaser-stats b { color: var(--studio-violet); font: 720 26px/1 var(--studio-display); letter-spacing: -.05em; }
.literature-teaser-stats span { color: var(--studio-muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 820px) { .literature-teaser { grid-template-columns: 1fr; gap: 28px; } }
