:root {
  --navy: #16233c;
  --navy-soft: #2b3a56;
  --muted: #667592;
  --line: #e4eaf3;
  --paper: #ffffff;
  --bg: #f7f9fd;
  --blue: #2f6df6;
  --blue-soft: #eaf2ff;
  --red: #e23e4e;
  --yellow: #ffc93c;
  --green: #10a76f;
  --orange: #f58235;
  --purple: #7654d8;
  --shadow-sm: 0 8px 24px rgba(22, 35, 60, 0.06);
  --shadow-md: 0 18px 46px rgba(22, 35, 60, 0.1);
  --shadow-lg: 0 28px 70px rgba(22, 35, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.svg-defs symbol,
svg use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 234, 243, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(22, 35, 60, 0.12);
}

.brand-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: left 0.2s ease, right 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.is-active::after {
  left: 0;
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(47, 109, 246, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(47, 109, 246, 0.28);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch:hover {
  border-color: #bdd2f8;
  box-shadow: 0 6px 16px rgba(22, 35, 60, 0.06);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.lang-switch select,
.mobile-lang select {
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch select {
  padding: 2px 2px 2px 0;
}

.mobile-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 6px 0;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 600;
}

.mobile-lang select {
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  place-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--navy-soft);
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 70px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-one {
  top: -200px;
  left: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 224, 143, 0.42), transparent 68%);
}

.glow-two {
  top: -40px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(198, 218, 255, 0.55), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.14);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.hero h1 span {
  background: linear-gradient(90deg, #2f6df6 0%, #7654d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(47, 109, 246, 0.3);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #dce4f0;
}

.btn-ghost:hover {
  border-color: #bdd2f8;
  background: #f9fbff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 7px 12px;
  border: 1px solid #e2e8f2;
  border-radius: 999px;
  background: #fff;
  color: #58677f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(22, 35, 60, 0.035);
}

.hero-visual {
  min-width: 0;
}

.visual-canvas {
  --cube-size: 150px;
  --cube-half: 75px;
  position: relative;
  width: 100%;
  height: 440px;
}

.cube-shadow {
  position: absolute;
  left: 56%;
  bottom: 80px;
  width: 220px;
  height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(22, 35, 60, 0.18), transparent 70%);
  filter: blur(4px);
}

.cube {
  position: absolute;
  top: 16px;
  right: 24px;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  animation: cubeSpin 18s linear infinite;
  filter: drop-shadow(0 22px 26px rgba(22, 35, 60, 0.18));
}

.visual-canvas:hover .cube {
  animation-play-state: paused;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: calc(var(--cube-size) * 0.04);
  padding: calc(var(--cube-size) * 0.067);
  border: 2px solid #dce4ef;
  border-radius: calc(var(--cube-size) * 0.11);
  background: #f9fbfe;
  box-shadow: inset 0 0 0 1px #fff, 0 6px 16px rgba(22, 35, 60, 0.08);
  backface-visibility: hidden;
}

.cube-face i,
.camera-grid i,
.phone-cube i {
  display: block;
  border-radius: 8px;
  box-shadow: inset 0 -2px 3px rgba(22, 35, 60, 0.09), inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.s-red { background: #e23e4e; }
.s-yellow { background: #ffc93c; }
.s-green { background: #10a76f; }
.s-blue { background: #2f6df6; }
.s-orange { background: #f58235; }
.s-white { background: #f8fbff; border: 1px solid #d9e2ee; }

.face-front { transform: translateZ(var(--cube-half)); }
.face-back { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.face-right { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.face-left { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.face-top { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.face-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

@keyframes cubeSpin {
  0% { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid #e1e8f3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #33435e;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(22, 35, 60, 0.1);
  backdrop-filter: blur(6px);
}

.float-chip svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.chip-solve { top: 78px; right: 0; }
.chip-camera { top: 198px; left: 8px; }
.chip-camera svg { color: var(--green); }
.chip-play { top: 286px; right: 34px; }
.chip-play svg { color: var(--orange); }

.scan-card {
  position: absolute;
  z-index: 4;
  left: 8px;
  bottom: 4px;
  width: 268px;
  padding: 18px;
  border: 1px solid #e3e9f3;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 55px rgba(22, 35, 60, 0.13);
}

.scan-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.scan-card-head img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.scan-card-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.scan-card-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.qr-img {
  width: 206px;
  height: 206px;
  margin: 0 auto;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.scan-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Proof strip ---------- */
.proof-strip {
  padding: 24px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  padding: 8px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.proof-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Shared section head ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-head h2,
.faq-head h2,
.qr-copy h2,
.learn-copy h2,
.motion-copy h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-head p,
.faq-head p,
.qr-copy p,
.learn-copy p,
.motion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Features ---------- */
.features {
  background: #fff;
}

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

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #e5ebf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 35, 60, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbdcf8;
  box-shadow: 0 18px 44px rgba(22, 35, 60, 0.09);
}

.feature-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-blue { background: #eaf2ff; color: var(--blue); }
.icon-yellow { background: #fff4d6; color: #b07800; }
.icon-green { background: #e7f8f0; color: var(--green); }
.icon-red { background: #ffecee; color: var(--red); }
.icon-orange { background: #fff0e5; color: var(--orange); }
.icon-purple { background: #f1edff; color: var(--purple); }

.feature-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.tick-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 22px;
  color: #43516a;
  font-size: 14px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.mini-visual {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 180px;
  height: 152px;
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 18px;
  background: #f6f9fd;
}

.camera-frame {
  position: absolute;
  inset: 18px;
  border: 2px dashed #adC5ee;
  border-radius: 14px;
}

.camera-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 5px;
  padding: 8px;
  border: 1px solid #e2e9f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 35, 60, 0.1);
  transform: rotate(-6deg);
}

.camera-grid i {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.scan-line {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scanLine 2.8s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { transform: translateY(-42px); opacity: 0.25; }
  50% { transform: translateY(42px); opacity: 1; }
}

.lesson-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
  width: 180px;
}

.lesson-strip span {
  padding: 8px 10px;
  border: 1px solid #e3e9f3;
  border-radius: 10px;
  background: #f5f8fc;
  color: #4a5971;
  font-size: 13px;
  font-weight: 700;
}

.lesson-strip span:nth-child(3) {
  border-color: #c9dcff;
  background: #eaf2ff;
  color: var(--blue);
}

.lesson-strip span:nth-child(5) {
  border-color: #c3ecda;
  background: #e7f8f0;
  color: var(--green);
}

/* ---------- How ---------- */
.how {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

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

.steps-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 62px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, #dce7fa, var(--blue), #dce7fa);
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 30px;
  border: 1px solid #e4eaf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-number {
  margin-bottom: 20px;
  color: #cbd9f2;
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

/* ---------- Motion demo ---------- */
.motion-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}

.motion-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 22px;
}

.motion-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #e3e9f3;
  border-radius: 999px;
  background: #fff;
  color: #56647d;
  font-size: 13px;
  font-weight: 600;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.dot-r { background: var(--red); }
.dot-u { background: var(--purple); }
.dot-f { background: var(--green); }
.dot-prime { background: var(--yellow); }

.motion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.motion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.motion-btn svg {
  width: 17px;
  height: 17px;
}

.motion-btn:hover {
  transform: translateY(-2px);
  border-color: #bdd2f8;
  background: #f9fbff;
}

.motion-btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.22);
}

.motion-btn-primary:hover {
  border-color: var(--blue);
  background: #2360e2;
}

.motion-status {
  display: flex;
  align-items: center;
  margin-top: 16px !important;
  color: #6b7890 !important;
  font-size: 13px !important;
}

.motion-status::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.13);
}

.motion-visual {
  min-width: 0;
}

.motion-stage {
  --cell: 62px;
  --gap: 5px;
  --step: 67px;
  --half: 31px;
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid #e3eaf5;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 44%, #ffffff 0%, #f6f9ff 58%, #edf3ff 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.72), 0 22px 52px rgba(22, 35, 60, 0.09);
  perspective: 950px;
}

.stage-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 1px dashed rgba(47, 109, 246, 0.22);
  border-radius: 50%;
  transform: rotateX(68deg);
}

.stage-orbit.orbit-b {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  border-style: solid;
  border-color: rgba(118, 84, 216, 0.14);
  transform: rotateX(70deg) rotateZ(24deg);
}

.turn-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(30deg);
}

.cubie {
  position: absolute;
  left: calc(var(--cell) / -2);
  top: calc(var(--cell) / -2);
  width: var(--cell);
  height: var(--cell);
  transform-style: preserve-3d;
  will-change: transform;
}

.cubie.is-animating {
  transition: transform 520ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.cubie-face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(22, 35, 60, 0.16);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 -3px 6px rgba(22, 35, 60, 0.1);
  backface-visibility: hidden;
}

.cubie-face.s-inner {
  background: #eef2f8;
  opacity: 0.35;
  box-shadow: none;
}

.turn-cube .face-front { transform: translateZ(calc(var(--cell) / 2)); }
.turn-cube .face-back { transform: rotateY(180deg) translateZ(calc(var(--cell) / 2)); }
.turn-cube .face-right { transform: rotateY(90deg) translateZ(calc(var(--cell) / 2)); }
.turn-cube .face-left { transform: rotateY(-90deg) translateZ(calc(var(--cell) / 2)); }
.turn-cube .face-top { transform: rotateX(90deg) translateZ(calc(var(--cell) / 2)); }
.turn-cube .face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--cell) / 2)); }

.move-sequence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.move-sequence button {
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  background: #fff;
  color: #5d6b84;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.move-sequence button:hover {
  border-color: #bdd2f8;
  color: var(--blue);
}

.move-sequence button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
  animation: tokenPulse 0.5s ease;
}

@keyframes tokenPulse {
  0% { transform: scale(0.94); }
  60% { transform: translateY(-3px) scale(1.04); }
  100% { transform: translateY(-2px) scale(1); }
}

/* ---------- Learn ---------- */
.learn-section {
  background: #fff;
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.learn-copy .btn {
  margin-top: 30px;
}

.learn-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.learn-list li,
.qr-checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #43516a;
  font-size: 15px;
}

.learn-list svg,
.qr-checks svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  stroke-width: 2.4;
}

.phone-card {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #f0f4fa;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f6;
  background: #fbfcfe;
}

.phone-dots {
  display: flex;
  gap: 5px;
}

.phone-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9e1ee;
}

.phone-dots i:first-child { background: #ffb6b6; }
.phone-dots i:nth-child(2) { background: #ffd98a; }
.phone-dots i:nth-child(3) { background: #a9e3c5; }

.phone-head strong {
  font-size: 14px;
}

.phone-lang {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.phone-body {
  padding: 22px;
}

.lesson-meta {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.lesson-progress {
  display: flex;
  gap: 6px;
  margin: 14px 0 20px;
}

.lesson-progress i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e7edf6;
}

.lesson-progress i.done {
  background: var(--blue);
}

.lesson-progress i.active {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.18);
}

.phone-cube-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.phone-cube {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 7px;
  width: 118px;
  height: 118px;
  padding: 10px;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #f7f9fc;
  transform: rotate(-4deg);
  box-shadow: 0 10px 20px rgba(22, 35, 60, 0.07);
}

.phone-cube-note {
  color: var(--muted);
  font-size: 12px;
}

.move-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.move-row span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e2e9f3;
  border-radius: 9px;
  background: #f5f7fb;
  color: #34435e;
  font-weight: 800;
  font-size: 13px;
}

.move-row .move-more {
  border-color: #cfe0ff;
  background: #fff;
  color: var(--blue);
}

.phone-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #dfe6f0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- QR ---------- */
.qr-section {
  background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
}

.qr-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
  padding: 50px 60px;
  overflow: hidden;
  border: 1px solid #e3ebf6;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 35, 60, 0.08);
}

.qr-panel::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.1), transparent 70%);
}

.qr-copy,
.qr-frame {
  position: relative;
  z-index: 1;
}

.qr-checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.qr-hint {
  margin-top: 22px !important;
  color: #8a96a9 !important;
  font-size: 13px !important;
}

.qr-frame {
  width: 300px;
  padding: 28px 28px 22px;
  border: 1px solid #dce7f8;
  border-radius: 26px;
  background: #f8fbff;
  text-align: center;
  box-shadow: inset 0 0 0 6px #fff, 0 18px 40px rgba(22, 35, 60, 0.08);
}

.qr-frame img {
  width: 230px;
  height: 230px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.qr-frame p {
  margin: 16px 0 0;
}

.qr-frame strong {
  display: block;
  font-size: 16px;
}

.qr-frame span:not(.qr-corner) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--blue);
}

.corner-tl {
  top: -3px;
  left: -3px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 14px 0 0 0;
}

.corner-tr {
  top: -3px;
  right: -3px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 14px 0 0;
}

.corner-bl {
  bottom: -3px;
  left: -3px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 14px;
}

.corner-br {
  right: -3px;
  bottom: -3px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 14px 0;
}

/* ---------- FAQ ---------- */
.faq {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.faq-list details {
  border-bottom: 1px solid #e5ebf4;
}

.faq-list details:first-child {
  border-top: 1px solid #e5ebf4;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.faq-list details[open] summary span::before {
  content: "−";
}

.faq-list details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 58px 0 24px;
  border-top: 1px solid #e5ebf4;
  background: #f7f9fc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  font-size: 17px;
}

.footer-brand p {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.footer-links a,
.footer-links span {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #8a96a9;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d7e3f7;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 24px rgba(22, 35, 60, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s ease var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 30px; }
  .visual-canvas { --cube-size: 132px; --cube-half: 66px; }
  .cube { right: 0; }
  .chip-solve { right: -6px; }
  .chip-play { right: 6px; }
  .feature-card { padding: 24px; }
  .qr-panel { gap: 40px; padding: 44px 40px; }
}

@media (max-width: 980px) {
  .nav,
  .nav-cta { display: none; }
  .menu-toggle { display: grid; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .hero-actions,
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .visual-canvas { max-width: 520px; margin: 0 auto; }

  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }

  .motion-grid { grid-template-columns: 1fr; gap: 36px; }
  .motion-copy { text-align: center; }
  .motion-legend,
  .motion-controls { justify-content: center; }
  .motion-status { justify-content: center; }
  .motion-visual { max-width: 620px; margin: 0 auto; width: 100%; }

  .learn-grid { grid-template-columns: 1fr; gap: 50px; }
  .learn-copy { text-align: center; }
  .learn-list { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }

  .qr-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-checks { justify-items: center; }

  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-head { text-align: center; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 74px; }
  .container { width: calc(100% - 28px); }
  .section { padding: 70px 0; }

  .nav-wrap { min-height: 66px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 16px; }

  .hero { padding: 58px 0 50px; }
  .hero h1 { margin-top: 18px; font-size: clamp(36px, 10vw, 44px); letter-spacing: -0.035em; }
  .lead { font-size: 16px; line-height: 1.75; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; max-width: 320px; }

  .visual-canvas { --cube-size: 112px; --cube-half: 56px; height: 430px; }
  .cube { top: 10px; right: 4px; }
  .cube-shadow { bottom: 62px; width: 170px; }
  .float-chip { padding: 7px 10px; font-size: 11px; }
  .chip-solve { top: 54px; right: 0; }
  .chip-camera { top: 156px; left: 0; }
  .chip-play { top: 246px; right: 0; }
  .scan-card { left: 50%; bottom: 0; width: 238px; transform: translateX(-50%); padding: 14px; }
  .qr-img { width: 194px; height: 194px; }

  .proof-strip { padding: 10px 0; }
  .proof-item { padding: 14px 4px; }
  .proof-item strong { font-size: 20px; }
  .proof-item span { font-size: 12px; }

  .section-head,
  .faq-head { margin-bottom: 34px; }
  .section-head h2,
  .faq-head h2,
  .qr-copy h2,
  .learn-copy h2,
  .motion-copy h2 { font-size: 29px; }
  .section-head p,
  .faq-head p,
  .qr-copy p,
  .learn-copy p,
  .motion-copy p { font-size: 15px; }

  .feature-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .mini-visual,
  .lesson-strip { width: 100%; }

  .steps-grid::before { display: none; }
  .step-card { padding: 24px; }

  .motion-copy { text-align: left; }
  .motion-legend,
  .motion-controls { justify-content: flex-start; }
  .motion-status { justify-content: flex-start; }
  .motion-legend { gap: 7px; }
  .motion-legend span { padding: 6px 9px; font-size: 12px; }
  .motion-btn { min-height: 42px; padding: 0 12px; font-size: 13px; }
  .motion-stage {
    --cell: 50px;
    --gap: 4px;
    --step: 54px;
    --half: 25px;
    height: 340px;
    border-radius: 24px;
  }
  .stage-orbit { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .stage-orbit.orbit-b { width: 290px; height: 290px; margin: -145px 0 0 -145px; }
  .move-sequence button { min-width: 38px; height: 34px; padding: 0 9px; font-size: 13px; }

  .learn-copy { text-align: left; }
  .learn-list { margin-left: 0; }

  .qr-panel { padding: 38px 20px; border-radius: 24px; }
  .qr-frame { width: 100%; max-width: 300px; }
  .qr-frame img { width: 210px; height: 210px; }

  .faq-list summary { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .back-top { right: 16px; bottom: 16px; }
}

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