:root {
  --ink: #15161a;
  --muted: #61636b;
  --paper: #f3f2ed;
  --surface: #ffffff;
  --line: rgba(21, 22, 26, 0.12);
  --blue: #5267f7;
  --blue-dark: #3045d8;
  --lavender: #dcd5ff;
  --lavender-light: #f1efff;
  --lime: #dff36d;
  --yellow: #ffd76a;
  --peach: #ffb89f;
  --dark: #17191f;
  --shell: min(1280px, calc(100vw - 48px));
  --wide-shell: var(--shell);
  --comet-duration: 1.8s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input {
  font: inherit;
}

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

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

button {
  border: 0;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.055em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 3px solid #7b8cff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

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

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: 14px 0 0;
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 44px));
  min-height: 64px;
  margin-inline: auto;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 10px 32px rgba(29, 31, 38, 0.08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.language-switch {
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: #efefec;
}

.language-button {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #6f7077;
  font-weight: 800;
  cursor: pointer;
}

.language-button img {
  display: block;
  width: 22px;
  height: 22px;
}

.language-button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(21, 22, 26, 0.08);
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.header-login:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.hero {
  padding-top: 18px;
}

.hero-frame {
  display: grid;
  grid-template-areas:
    "copy demo"
    "support demo";
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-height: 760px;
  padding: 64px 56px;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 87% 9%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(140deg, #e8e7e2 0%, #eceae5 54%, #dcd8ff 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  max-width: 690px;
  padding-right: 28px;
}

.hero-support {
  position: relative;
  z-index: 2;
  grid-area: support;
  max-width: 690px;
  padding-right: 28px;
}

@media (min-width: 1121px) {
  .hero-copy {
    align-self: end;
  }

  .hero-support {
    align-self: start;
  }
}

.eyebrow {
  margin-bottom: 21px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(48px, 4.2vw, 64px);
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 520px;
  margin-top: 18px;
  color: #34363d;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

html[lang="en"] .hero h1 {
  line-height: 1.06;
  letter-spacing: -0.03em;
}

html[lang="en"] .hero-lead,
html[lang="en"] .method-lead,
html[lang="en"] .method-copy p,
html[lang="en"] .domains-heading > p:last-child,
html[lang="en"] .domain-copy > p,
html[lang="en"] .context-copy > p:last-of-type,
html[lang="en"] .footer-intro p {
  line-height: 1.55;
  letter-spacing: -0.008em;
}

.hero-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 610px;
  margin-top: 42px;
}

.role-choice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.87);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.role-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 103, 247, 0.34);
  box-shadow: 0 17px 30px rgba(32, 35, 50, 0.12);
}

.role-choice.learner {
  background: var(--ink);
  color: #fff;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 20px;
}

.educator .choice-icon {
  background: var(--lime);
}

.role-choice > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.role-choice small {
  margin-bottom: 4px;
  opacity: 0.62;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-choice strong {
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.role-choice b {
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.hero-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-store-link {
  position: relative;
  display: inline-flex;
  min-width: 150px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 15px;
  border: 1px solid rgba(16, 19, 25, 0.11);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64));
  box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(30, 39, 64, 0.055);
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-store-link > span {
  display: grid;
  gap: 4px;
}

.hero-store-link small {
  color: #7b7d84;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-store-link strong {
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-store-link b {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 92, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero-store-link:hover {
  border-color: rgba(91, 92, 255, 0.24);
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 25px rgba(30, 39, 64, 0.09);
  transform: translateY(-1px);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-cta {
  display: inline-flex;
  width: 172px;
  height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-cta:hover {
  background: transparent;
  opacity: 0.88;
  transform: translateY(-2px);
}

.store-badge {
  display: block;
  width: auto;
  max-width: none;
}

.store-badge-apple {
  height: 52px;
}

.store-badge-google {
  height: 78px;
}

.store-cta-google {
  width: 200px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #555861;
  font-size: 13px;
  font-weight: 800;
}

.hero-secondary b {
  color: var(--blue);
  font-size: 17px;
  transition: transform 180ms ease;
}

.hero-secondary:hover b {
  transform: translateX(3px);
}

.hero-demo {
  position: relative;
  grid-area: demo;
  width: min(100%, 600px);
  justify-self: end;
}

.demo-shell {
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(44, 43, 74, 0.2);
  transform: rotate(0.8deg);
  transition: transform 300ms ease;
}

.hero-demo:hover .demo-shell {
  transform: rotate(0deg) translateY(-4px);
}

.demo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px 12px;
  color: #555760;
  font-size: 12px;
  font-weight: 750;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.demo-brand img {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}

.demo-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f1ee;
}

.demo-step i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ebd72;
  box-shadow: 0 0 0 4px rgba(62, 189, 114, 0.13);
}

.loop-switcher {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 16px;
  background: #f0f0ed;
}

.loop-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 7px;
  border-radius: 12px;
  background: transparent;
  color: #777982;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.loop-switcher button:hover {
  color: var(--ink);
}

.loop-switcher button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(25, 26, 34, 0.09);
  transform: translateY(-1px);
}

.loop-switcher button b {
  display: grid;
  flex: 0 0 19px;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 7px;
  background: #deded9;
  font-size: 9px;
}

.loop-switcher button[aria-selected="true"] b {
  background: var(--ink);
  color: #fff;
}

.directing-stage {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 26px;
  background:
    radial-gradient(circle at 76% 19%, rgba(139, 126, 255, 0.21), transparent 25%),
    linear-gradient(160deg, #121426, #1e2244 58%, #29244a);
}

.directing-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 8, 22, 0.28));
  pointer-events: none;
}

.scene-switcher {
  position: absolute;
  z-index: 20;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(14, 16, 35, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(14px);
}

.scene-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.scene-switcher button.is-active {
  background: #fff;
  color: var(--ink);
}

.scene-switcher button i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9px;
  font-style: normal;
}

.scene-switcher button.is-active i {
  background: var(--lavender);
}

.scene-canvas,
.scene-layer {
  position: absolute;
  inset: 0;
}

.scene-layer {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-demo[data-scene="sky"] .scene-sky,
.hero-demo[data-scene="word"] .scene-word,
.hero-demo[data-scene="machine"] .scene-machine {
  opacity: 1;
  transform: scale(1);
}

.scene-sky {
  background:
    radial-gradient(circle at 27% 25%, rgba(105, 116, 255, 0.43), transparent 25%),
    radial-gradient(circle at 82% 74%, rgba(241, 135, 255, 0.24), transparent 25%),
    linear-gradient(160deg, #0e1430 0%, #22204e 55%, #361f5f 100%);
}

.sky-moon {
  position: absolute;
  top: 77px;
  right: 56px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff9cf;
  box-shadow: 0 0 35px rgba(255, 248, 184, 0.45);
}

.sky-moon::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 15px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #17183f;
}

.sky-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.88);
  animation: twinkle 1.8s ease-in-out infinite alternate;
}

.sky-star::before,
.sky-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: rgba(255, 255, 255, 0.68);
  transform: translate(-50%, -50%);
}

.sky-star::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.st1 { top: 19%; left: 20%; animation-delay: -0.3s; }
.st2 { top: 36%; left: 43%; animation-delay: -1.2s; }
.st3 { top: 22%; left: 67%; animation-delay: -0.7s; }
.st4 { top: 55%; left: 18%; animation-delay: -1.5s; }
.st5 { top: 66%; left: 67%; animation-delay: -0.4s; }
.st6 { top: 44%; left: 84%; animation-delay: -1s; }
.st7 { top: 72%; left: 41%; animation-delay: -0.8s; }
.st8 { top: 30%; left: 29%; animation-delay: -1.4s; }

@keyframes twinkle {
  from { opacity: 0.35; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1.12); }
}

.sky-comet {
  position: absolute;
  top: 96px;
  left: -90px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #f6f7ff;
  box-shadow: 0 0 16px #fff, 0 0 28px rgba(126, 145, 255, 0.8);
  animation: hero-comet-flight 2.1s linear infinite;
  transition: animation-duration 300ms ease;
}

.hero-demo.is-revised .sky-comet {
  animation-duration: 4.2s;
}

.sky-comet i {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 95px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(163, 179, 255, 0.7), #fff);
  transform-origin: right center;
  transform: rotate(21deg);
}

@keyframes hero-comet-flight {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translate(720px, 235px); opacity: 0; }
}

.sky-orbit {
  position: absolute;
  top: 184px;
  right: 33px;
  width: 130px;
  height: 51px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.scene-word {
  background:
    radial-gradient(circle at 50% 15%, rgba(251, 206, 125, 0.24), transparent 25%),
    linear-gradient(160deg, #221c42, #39285e 52%, #4c2a64);
}

.drop-tower {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 210px;
  height: 296px;
  transform: translateX(-50%);
}

.drop-tower > i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.drop-tower > i:nth-child(1) { top: 35px; }
.drop-tower > i:nth-child(2) { top: 88px; }
.drop-tower > i:nth-child(3) { top: 141px; }
.drop-tower > i:nth-child(4) { top: 194px; }
.drop-tower > i:nth-child(5) { top: 247px; }

.drop-tower > i::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.word-token {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 86px;
  height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  background: #fff6d7;
  color: #352448;
  box-shadow: 0 12px 28px rgba(6, 7, 20, 0.28);
  transform: translateX(-50%);
  animation: word-drop 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.word-token b {
  font-size: 12px;
  letter-spacing: -0.02em;
}

.word-after,
.hero-demo.is-revised .word-before {
  display: none;
}

.hero-demo.is-revised .word-after {
  display: inline;
}

.hero-demo.is-revised .word-token {
  background: var(--lime);
  animation-duration: 5s;
}

@keyframes word-drop {
  0%, 7% { top: 4px; opacity: 0; transform: translateX(-50%) scale(0.9); }
  13% { opacity: 1; }
  81% { top: 246px; opacity: 1; transform: translateX(-50%) scale(1); }
  90%, 100% { top: 266px; opacity: 0; transform: translateX(-50%) scale(0.82); }
}

.word-machine {
  position: absolute;
  right: 42px;
  bottom: 72px;
  width: 72px;
  height: 50px;
  border-radius: 15px 19px 12px 12px;
  background: linear-gradient(145deg, #eaf3b2, #9ed56d);
  box-shadow: 0 13px 24px rgba(7, 8, 21, 0.24);
  animation: machine-wobble 1.2s ease-in-out infinite alternate;
}

.hero-demo.is-revised .word-machine {
  animation: machine-success 2s ease-in-out infinite;
}

.word-machine span {
  position: absolute;
  top: 13px;
  left: 18px;
  width: 36px;
  height: 19px;
  border-radius: 8px;
  background: #eaffef;
}

.word-machine span::before,
.word-machine span::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: #2c8b78;
}

.word-machine span::before { left: 7px; }
.word-machine span::after { right: 7px; }

.word-machine i,
.word-machine b {
  position: absolute;
  bottom: -7px;
  width: 18px;
  height: 12px;
  border-radius: 50%;
  background: #202338;
}

.word-machine i { left: 9px; }
.word-machine b { right: 9px; }

@keyframes machine-wobble {
  from { transform: translateX(0) rotate(-2deg); }
  to { transform: translateX(8px) rotate(2deg); }
}

@keyframes machine-success {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-22px); }
}

.impact-ring {
  position: absolute;
  bottom: 66px;
  left: 50%;
  width: 65px;
  height: 18px;
  border: 2px solid rgba(255, 215, 106, 0.6);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: impact 3.2s ease-out infinite;
}

@keyframes impact {
  0%, 72% { opacity: 0; transform: translateX(-50%) scale(0.35); }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.35); }
}

.scene-machine {
  background: linear-gradient(150deg, #111a31, #173045 58%, #17484a);
}

.machine-grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 34px 34px;
}

.route-line {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: rgba(237, 244, 223, 0.74);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06);
}

.route-one { top: 161px; left: 55px; width: 172px; }
.route-two { top: 221px; left: 194px; width: 134px; transform: rotate(62deg); }
.route-three { top: 281px; left: 296px; width: 205px; }

.route-corner {
  position: absolute;
  top: 156px;
  left: 218px;
  width: 94px;
  height: 139px;
  border: 10px solid rgba(237, 244, 223, 0.74);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 34px 0;
  transform: skewY(28deg);
}

.mini-machine {
  position: absolute;
  z-index: 3;
  top: 135px;
  left: 78px;
  width: 58px;
  height: 38px;
  border-radius: 13px;
  background: var(--yellow);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  animation: drive-route 4.2s ease-in-out infinite;
}

.hero-demo.is-revised .mini-machine {
  animation-duration: 6.2s;
}

.mini-machine span {
  position: absolute;
  top: 8px;
  left: 16px;
  width: 27px;
  height: 16px;
  border-radius: 6px;
  background: #fff8dc;
}

.mini-machine i,
.mini-machine b {
  position: absolute;
  bottom: -6px;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: #1c2132;
}

.mini-machine i { left: 8px; }
.mini-machine b { right: 8px; }

@keyframes drive-route {
  0%, 10% { transform: translate(0, 0) rotate(0); }
  38% { transform: translate(145px, 0) rotate(0); }
  55% { transform: translate(177px, 55px) rotate(55deg); }
  73% { transform: translate(219px, 118px) rotate(0); }
  100% { transform: translate(340px, 118px) rotate(0); }
}

.target-pin {
  position: absolute;
  right: 58px;
  bottom: 115px;
  width: 22px;
  height: 22px;
  border: 5px solid var(--lime);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 0 7px rgba(223, 243, 109, 0.1);
  transform: rotate(-45deg);
}

.intent-card {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 18px;
  left: 106px;
  min-height: 73px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(15, 18, 47, 0.72);
  color: #fff;
  box-shadow: 0 12px 36px rgba(4, 5, 20, 0.25);
  backdrop-filter: blur(12px);
}

.intent-card small,
.intent-card strong {
  display: block;
}

.intent-card small {
  margin-bottom: 5px;
  color: #b8c1ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.intent-card strong {
  font-size: 14px;
  line-height: 1.4;
}

.redirect-route {
  position: absolute;
  z-index: 8;
  inset: 80px 32px 94px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.hero-demo[data-loop-step="redirect"] .redirect-route {
  opacity: 1;
}

.redirect-route i {
  position: absolute;
  top: 46%;
  left: 12%;
  width: 76%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff8fc3 20%, #ffa4c7 72%, transparent);
  box-shadow: 0 0 18px rgba(255, 126, 187, 0.78);
  transform: rotate(-11deg);
}

.redirect-route b,
.redirect-route span {
  position: absolute;
  border-radius: 50%;
  background: #ff98c5;
  box-shadow: 0 0 0 8px rgba(255, 133, 190, 0.13), 0 0 25px rgba(255, 133, 190, 0.6);
}

.redirect-route b {
  top: 60%;
  left: 9%;
  width: 13px;
  height: 13px;
}

.redirect-route span {
  top: 27%;
  right: 9%;
  width: 17px;
  height: 17px;
  animation: route-signal 1.35s ease-in-out infinite alternate;
}

@keyframes route-signal {
  to { transform: scale(1.35); }
}

.saved-project {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 194px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 22px 50px rgba(2, 4, 17, 0.32);
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.88);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-demo[data-loop-step="accumulate"] .saved-project {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.saved-project > i {
  display: grid;
  flex: 0 0 43px;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--lime);
  color: #24320f;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.saved-project span {
  display: flex;
  flex-direction: column;
}

.saved-project small {
  color: #7b7c84;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.saved-project b {
  margin-top: 3px;
  font-size: 17px;
}

.loop-character {
  position: absolute;
  z-index: 12;
  bottom: 23px;
  left: 28px;
  opacity: 0;
  filter: drop-shadow(0 14px 15px rgba(4, 5, 18, 0.28));
  transform: translateY(15px) scale(0.8);
  transition: opacity 300ms ease, transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1), left 380ms ease;
}

.loop-character::after {
  content: "";
  position: absolute;
  inset: 5px 8px auto;
  height: 35%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(5px);
}

.character-face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 2;
  background: #fff8dc;
}

.character-yellow {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: linear-gradient(145deg, #ffe27e, #efbd35);
}

.character-yellow .character-pin {
  position: absolute;
  top: -10px;
  left: 24px;
  width: 15px;
  height: 14px;
  border-radius: 6px 6px 2px 2px;
  background: #f5ce4d;
}

.character-yellow .character-face {
  top: 17px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transform: rotate(45deg);
}

.character-yellow .character-face b {
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 3px;
  background: #9b681c;
}

.character-purple {
  width: 65px;
  height: 61px;
  border-radius: 19px 19px 22px 22px;
  background: linear-gradient(145deg, #b39afa, #7653d1);
}

.character-purple .character-tab {
  position: absolute;
  top: -8px;
  width: 15px;
  height: 13px;
  border-radius: 6px 6px 2px 2px;
  background: #9273e6;
}

.character-purple .character-tab.one { left: 12px; }
.character-purple .character-tab.two { right: 12px; }

.character-purple .character-face {
  top: 14px;
  left: 14px;
  width: 37px;
  height: 29px;
  border-radius: 11px;
}

.character-purple .character-face b {
  width: 15px;
  height: 15px;
  margin: auto;
  border-radius: 50%;
  background: #7151ce;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.character-purple em {
  position: absolute;
  bottom: -5px;
  left: 18px;
  width: 30px;
  height: 13px;
  border: 4px solid #7757ce;
  border-top: 0;
  border-radius: 0 0 13px 13px;
}

.character-green {
  width: 80px;
  height: 51px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d6ef72, #76bd59);
}

.character-green .character-side {
  position: absolute;
  top: 17px;
  width: 11px;
  height: 21px;
  background: #85c65a;
}

.character-green .character-side.left { left: -8px; border-radius: 7px 2px 2px 7px; }
.character-green .character-side.right { right: -8px; border-radius: 2px 7px 7px 2px; }

.character-green .character-face {
  top: 11px;
  left: 15px;
  width: 50px;
  height: 29px;
  padding: 0 9px;
  border-radius: 10px;
}

.character-green .character-face b {
  width: 11px;
  height: 14px;
  border-radius: 5px;
  background: #258a7e;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.hero-demo[data-loop-step="direct"] .character-yellow,
.hero-demo[data-loop-step="read"] .character-purple,
.hero-demo[data-loop-step="evaluate"] .character-green {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-demo[data-loop-step="redirect"] .character-yellow,
.hero-demo[data-loop-step="redirect"] .character-purple {
  opacity: 0.86;
  transform: translateY(0) scale(0.9);
}

.hero-demo[data-loop-step="redirect"] .character-yellow { left: 27px; }
.hero-demo[data-loop-step="redirect"] .character-purple { left: 78px; }

.hero-demo[data-loop-step="accumulate"] .loop-character {
  opacity: 1;
  transform: translateY(0) scale(0.83);
}

.hero-demo[data-loop-step="accumulate"] .character-yellow { left: 22px; }
.hero-demo[data-loop-step="accumulate"] .character-purple { left: 70px; }
.hero-demo[data-loop-step="accumulate"] .character-green { left: 119px; }

.hero-demo[data-loop-step="accumulate"] .intent-card,
.hero-demo[data-loop-step="accumulate"] .character-caption {
  opacity: 0;
}

.character-caption {
  position: absolute;
  z-index: 13;
  bottom: 92px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9, 10, 27, 0.61);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  transition: opacity 200ms ease;
}

.character-caption span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-demo[data-loop-step="read"] .character-caption span { background: #a58aec; }
.hero-demo[data-loop-step="evaluate"] .character-caption span { background: #9bd45f; }
.hero-demo[data-loop-step="redirect"] .character-caption span { background: #ff8fc3; }

.character-caption b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 16px 7px 3px;
}

.console-copy {
  min-width: 0;
}

.console-copy small,
.console-copy strong {
  display: block;
}

.console-copy small {
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.console-copy strong {
  max-width: 330px;
  font-size: 12px;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.console-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.console-actions button {
  min-height: 40px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.console-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  background: #efefec;
  color: #5f616a;
}

.console-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 122px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.console-main:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.console-main b {
  font-size: 15px;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #555760;
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48c47a;
  box-shadow: 0 0 0 5px rgba(72, 196, 122, 0.14);
}

/* Hero v3 — current-product simulation with approved character assets. */
.hero-frame {
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
}

@media (min-width: 1121px) {
  .hero h1 > span {
    white-space: nowrap;
  }
}

.hero-demo {
  width: min(100%, 670px);
}

.product-demo-shell {
  padding: 12px;
  border-radius: 28px;
  transform: none;
}

.hero-demo:hover .product-demo-shell {
  transform: translateY(-2px);
}

.product-window {
  overflow: hidden;
  border: 1px solid #dfe1e8;
  border-radius: 20px;
  background: #f7f7f8;
  box-shadow: 0 16px 38px rgba(31, 35, 53, 0.12);
}

.product-appbar {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5e6ea;
  background: #fff;
}

.product-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f0efff;
  color: #5965d9;
  font-size: 20px;
}

.product-project-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-project-meta strong {
  overflow: hidden;
  font-size: 11px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-project-meta small {
  color: #9a9ca5;
  font-size: 8px;
}

.product-mode {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f2f2f3;
  font-size: 8px;
  font-weight: 800;
}

.product-mode b,
.product-mode span {
  padding: 5px 8px;
  border-radius: 999px;
}

.product-mode b {
  background: #6f73e6;
  color: #fff;
}

.product-credit {
  padding: 6px 8px;
  border: 1px solid #e1e2e7;
  border-radius: 999px;
  background: #fff;
  color: #6568ca;
  font-size: 8px;
  font-weight: 850;
}

.product-workspace {
  display: grid;
  grid-template-columns: minmax(235px, 0.43fr) minmax(0, 0.57fr);
  min-height: 410px;
}

.feedback-pane {
  min-width: 0;
  border-right: 1px solid #dfe1e6;
  background: #f8f8f9;
}

.feedback-tabs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  height: 38px;
  padding: 4px;
  border-bottom: 1px solid #e2e3e8;
  background: #fff;
  color: #777a83;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.feedback-tabs b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 29px;
  border-radius: 8px;
  background: #3167eb;
  color: #fff;
}

.feedback-tabs i {
  font-size: 8px;
  font-style: normal;
}

.guide-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 10px 10px 8px;
  padding: 7px;
  border: 1px solid #e1e2e8;
  border-radius: 13px;
  background: #fff;
}

.guide-media {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 11px;
  background: #f6ede6;
}

.guide-asset,
.guide-route,
.guide-family {
  display: none;
  width: 100%;
  height: 100%;
}

.guide-asset {
  object-fit: cover;
}

.guide-yellow {
  object-position: center;
}

.guide-purple {
  object-position: center;
  object-fit: cover;
  background: #f3f1ff;
}

.guide-media[data-media-mode="motion"] {
  background: #ede9ff;
}

.guide-media[data-media-mode="static"] {
  background: #f6ede6;
}

.guide-green {
  object-position: center;
}

.guide-route {
  place-items: center;
  background: #fff1f7;
  color: #df5797;
  font-size: 25px;
  font-weight: 900;
}

.guide-family {
  object-fit: contain;
  padding: 8px;
  background: #f3f1ff;
}

.hero-demo[data-loop-step="direct"] .guide-yellow,
.hero-demo[data-loop-step="read"] .guide-purple,
.hero-demo[data-loop-step="evaluate"] .guide-green,
.hero-demo[data-loop-step="accumulate"] .guide-family {
  display: block;
}

.hero-demo[data-loop-step="redirect"] .guide-route {
  display: grid;
}

.guide-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.guide-card small {
  color: #5f63d2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.guide-card strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-scroll {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 315px;
  padding: 0 10px 11px;
  overflow: auto;
  scrollbar-width: thin;
}

.feedback-card {
  padding: 10px;
  border: 1px solid #dfe1e8;
  border-radius: 11px;
  background: #fff;
}

.feedback-card > small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4c4f59;
  font-size: 8px;
  font-weight: 850;
}

.feedback-card > small i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: #f0f1ff;
  font-size: 8px;
  font-style: normal;
}

.feedback-card p,
.feedback-card > strong {
  display: block;
  margin-top: 8px;
  color: #30323a;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.feedback-understanding {
  border-left: 3px solid #6680ef;
  background: #f5f7ff;
}

.feedback-change {
  background: #f3f8f3;
}

.feedback-change > strong::before {
  content: "+";
  margin-right: 5px;
  color: #31945b;
}

.feedback-card button {
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid #d8dae2;
  border-radius: 7px;
  background: #fff;
  color: #5f63d2;
  font-size: 7px;
  font-weight: 800;
}

.runtime-pane {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 30px;
  min-width: 0;
  background: #080b1c;
}

.runtime-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101525;
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 800;
}

.runtime-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  color: #25283a;
  font-size: 7px;
  font-weight: 850;
  cursor: pointer;
}

.runtime-canvas {
  position: relative;
  min-height: 342px;
  overflow: hidden;
  background: #070a1a;
}

.runtime-scene {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-demo[data-scene="sky"] .runtime-sky,
.hero-demo[data-scene="word"] .runtime-arcade,
.hero-demo[data-scene="machine"] .runtime-arduino {
  display: block;
}

.runtime-sky {
  background: #07091c;
}

.runtime-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fffbd6;
  box-shadow: 0 0 7px rgba(255, 249, 195, 0.72);
}

.rs1 { top: 10%; left: 17%; }
.rs2 { top: 21%; left: 74%; width: 2px; height: 2px; }
.rs3 { top: 33%; left: 41%; }
.rs4 { top: 47%; left: 85%; width: 2px; height: 2px; }
.rs5 { top: 59%; left: 23%; }
.rs6 { top: 72%; left: 65%; }
.rs7 { top: 84%; left: 39%; width: 2px; height: 2px; }
.rs8 { top: 16%; left: 54%; }
.rs9 { top: 39%; left: 12%; width: 2px; height: 2px; }
.rs10 { top: 55%; left: 51%; }
.rs11 { top: 77%; left: 89%; }
.rs12 { top: 89%; left: 9%; width: 2px; height: 2px; }

.hero-demo.is-running .runtime-star {
  animation: runtime-star-fall 900ms linear 1 both;
}

.hero-demo.is-running .runtime-star:nth-child(3n) { animation-delay: 80ms; }
.hero-demo.is-running .runtime-star:nth-child(4n) { animation-delay: 160ms; }

@keyframes runtime-star-fall {
  from { transform: translateY(-45px); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(240px); opacity: 0; }
}

.runtime-arcade {
  background: linear-gradient(#87b9de 0 58%, #6f9a4c 58% 64%, #416c36 64%);
}

.game-hud {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.game-cloud {
  position: absolute;
  width: 46px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.game-cloud::before,
.game-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.game-cloud::before { left: 8px; width: 20px; height: 20px; }
.game-cloud::after { right: 7px; width: 16px; height: 16px; }
.game-cloud.c1 { top: 65px; left: 38px; }
.game-cloud.c2 { top: 105px; right: 45px; transform: scale(0.75); }

.game-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  background: repeating-linear-gradient(90deg, #33582d 0 18px, #3d6534 18px 36px);
}

.game-player {
  position: absolute;
  z-index: 3;
  bottom: 34%;
  left: 18%;
  width: 24px;
  height: 31px;
  border-radius: 6px 6px 4px 4px;
  background: #4657b8;
  box-shadow: inset 0 -7px rgba(18, 29, 95, 0.32);
}

.game-player i {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 12px;
  height: 6px;
  border-radius: 3px;
  background: #dce5ff;
}

.game-coin {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 3px solid #f8cc3c;
  border-radius: 50%;
  background: #ffe883;
}

.coin1 { bottom: 45%; left: 45%; }
.coin2 { bottom: 52%; left: 64%; }
.coin3 { bottom: 42%; left: 81%; }

.hero-demo.is-running .game-player {
  animation: runtime-jump 900ms cubic-bezier(0.2, 0.65, 0.35, 1) 1 both;
}

.hero-demo.is-running .coin1 {
  animation: collect-coin 900ms ease 1 both;
}

@keyframes runtime-jump {
  0% { transform: translate(0, 0); }
  48% { transform: translate(100px, -65px); }
  100% { transform: translate(170px, 0); }
}

@keyframes collect-coin {
  0%, 55% { opacity: 1; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.8); }
}

.runtime-arduino {
  background: #e8ebef;
}

.code-preview {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: #171b25;
  color: #b7bec9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 7px;
}

.code-preview b {
  color: #8ee6b3;
}

.sim-board {
  position: absolute;
  bottom: 51px;
  left: 43px;
  width: 145px;
  height: 91px;
  border-radius: 9px;
  background: #2b8891;
  box-shadow: 0 11px 25px rgba(24, 34, 45, 0.22);
}

.sim-board > span {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #d7ffff;
  font-size: 7px;
  font-weight: 800;
}

.sim-board > i {
  position: absolute;
  top: 17px;
  width: 29px;
  height: 29px;
  border-radius: 4px;
  background: #20252d;
}

.sim-board > i:nth-of-type(1) { left: 15px; }
.sim-board > i:nth-of-type(2) { left: 57px; width: 40px; }
.sim-board > i:nth-of-type(3) { left: 105px; width: 24px; background: #c7d2d4; }

.sim-board > b {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  height: 14px;
  background: repeating-linear-gradient(90deg, #222 0 3px, transparent 3px 7px);
}

.sim-led {
  position: absolute;
  right: 44px;
  bottom: 72px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #5f6570;
  font-size: 7px;
  font-weight: 850;
}

.sim-led i {
  display: block;
  width: 29px;
  height: 38px;
  border: 4px solid #a2a8b0;
  border-radius: 16px 16px 5px 5px;
  background: #d7dbe0;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.hero-demo[data-loop-step="read"] .sim-led i,
.hero-demo[data-loop-step="evaluate"] .sim-led i,
.hero-demo[data-loop-step="redirect"].is-revised .sim-led i,
.hero-demo[data-loop-step="accumulate"] .sim-led i,
.hero-demo.is-running .sim-led i {
  border-color: #e7b52f;
  background: #ffd94f;
  box-shadow: 0 0 24px rgba(255, 206, 53, 0.72);
}

.sim-wire {
  position: absolute;
  right: 71px;
  bottom: 98px;
  width: 92px;
  height: 47px;
  border: 3px solid #e25454;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 24px 0 0;
}

.saved-result {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 174px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -45%);
  transition: opacity 180ms ease, transform 220ms ease;
}

.hero-demo[data-loop-step="accumulate"] .saved-result {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.saved-result > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #dff36d;
  font-style: normal;
  font-weight: 900;
}

.saved-result span {
  display: flex;
  flex-direction: column;
}

.saved-result small {
  color: #81838c;
  font-size: 7px;
  font-weight: 850;
}

.saved-result b {
  margin-top: 2px;
  color: #1f2026;
  font-size: 10px;
}

.runtime-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #101525;
  color: rgba(255, 255, 255, 0.62);
  font-size: 7px;
  font-weight: 750;
}

.runtime-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #858894;
}

.hero-demo.is-running .runtime-status i,
.hero-demo[data-loop-step="read"] .runtime-status i,
.hero-demo[data-loop-step="evaluate"] .runtime-status i,
.hero-demo[data-loop-step="accumulate"] .runtime-status i {
  background: #48c47a;
  box-shadow: 0 0 0 4px rgba(72, 196, 122, 0.12);
}

.product-commandbar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 8px 9px;
  border-top: 1px solid #dfe1e6;
  background: #fff;
}

.product-commandbar .console-arrow {
  width: 34px;
  min-height: 34px;
  border-radius: 10px;
  font-size: 14px;
}

.product-prompt {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #dedfe4;
  border-radius: 11px;
  background: #fafafa;
}

.product-prompt small {
  color: #8c8f98;
  font-size: 7px;
}

.product-prompt strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-commandbar .console-main {
  min-width: 92px;
  min-height: 42px;
  border-radius: 11px;
  background: #6f73e6;
  font-size: 8px;
}

.product-commandbar .console-main:hover {
  background: #565cd2;
}

.product-demo-shell > .scene-switcher {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 9px;
  padding: 4px;
  border: 0;
  border-radius: 13px;
  background: #efeff2;
  box-shadow: none;
  backdrop-filter: none;
}

.product-demo-shell > .scene-switcher button {
  justify-content: center;
  min-height: 31px;
  border-radius: 9px;
  color: #71737c;
}

.product-demo-shell > .scene-switcher button.is-active {
  background: #fff;
  color: #202126;
  box-shadow: 0 2px 8px rgba(28, 30, 40, 0.08);
}

.product-demo-shell > .loop-switcher {
  margin-top: 6px;
  margin-bottom: 0;
  background: #f5f5f6;
}

/* Hero v5 — one compressed directing challenge, played like a product reel. */
.canvas-demo {
  width: min(100%, 690px);
}

.canvas-showcase {
  overflow: hidden;
  border-radius: 30px;
  background: transparent;
}

.canvas-showcase-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 2px 7px 8px;
  color: #4e5059;
  font-size: 11px;
  font-weight: 820;
}

.canvas-showcase-title,
.canvas-playback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.canvas-showcase-title {
  min-width: 30px;
  justify-content: center;
}

.canvas-showcase-title > span,
.canvas-showcase-title > b {
  display: none;
}

.canvas-showcase-title > i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #ffd352 0 47%, transparent 47% 53%, #8b74ee 53%),
    linear-gradient(#ff7595 0 47%, transparent 47% 53%, #63c98b 53%);
  box-shadow: inset 0 0 0 1px rgba(21, 22, 26, 0.08);
}

.canvas-showcase-title > b {
  padding-left: 7px;
  border-left: 1px solid rgba(21, 22, 26, 0.12);
  color: #9b9da5;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.canvas-playback {
  min-width: 30px;
  min-height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: #f0f1f4;
  color: #6f727b;
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.canvas-playback > span,
.canvas-playback > i {
  display: none;
}

.canvas-playback > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ccb7e;
  box-shadow: 0 0 0 4px rgba(76, 203, 126, 0.13);
}

.canvas-playback > b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #32343b;
  font-size: 8px;
}

.canvas-demo[data-hero-paused="true"] .canvas-playback > i {
  background: #a9abb2;
  box-shadow: none;
}

.canvas-stage {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: #080b1d;
  box-shadow: none;
  isolation: isolate;
}

.canvas-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 83%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-mission,
.canvas-question,
.canvas-vibeblock,
.canvas-success,
.canvas-observation,
.canvas-intent,
.canvas-auto-cursor {
  position: absolute;
  z-index: 4;
}

.canvas-mission {
  top: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(410px, calc(100% - 142px));
  min-height: 68px;
  padding: 10px 15px 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(16, 19, 40, 0.82);
  color: #fff;
  box-shadow: 0 17px 38px rgba(2, 4, 14, 0.34);
  backdrop-filter: blur(14px);
  transition: opacity 280ms ease, transform 360ms ease;
}

.canvas-mission > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #dcd5ff;
  color: #242534;
  font-size: 18px;
}

.canvas-demo[data-hero-scene="machine"] .canvas-mission > span {
  background: #dff36d;
}

.canvas-demo[data-hero-scene="game"] .canvas-mission > span {
  background: #ffd76a;
}

.canvas-mission > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.canvas-mission small,
.canvas-question small,
.canvas-vibeblock small,
.canvas-success small {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.canvas-mission small {
  display: none;
}

.canvas-mission strong {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.canvas-intent {
  top: 24px;
  right: 18px;
  display: flex;
  width: 105px;
  min-height: 57px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(8, 11, 28, 0.68);
  color: #fff;
  backdrop-filter: blur(12px);
}

.canvas-intent span {
  display: none;
}

.canvas-intent strong {
  margin-top: 0;
  color: #dcd5ff;
  font-size: 12px;
}

.canvas-observation {
  bottom: 19px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(255, 183, 117, 0.24);
  border-radius: 999px;
  background: rgba(31, 20, 24, 0.82);
  color: #ffd6b3;
  font-size: 9px;
  font-weight: 760;
  opacity: 0;
  transform: translate(-50%, 9px);
  backdrop-filter: blur(12px);
  transition: opacity 260ms ease, transform 340ms ease;
}

.canvas-observation > i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffb675;
  color: #311b0c;
  font-size: 11px;
  font-style: normal;
}

.canvas-demo[data-hero-phase="attempt"] .canvas-observation {
  animation: canvas-observation-in 260ms 420ms both;
}

.canvas-demo[data-hero-scene="canvas"][data-hero-phase="attempt"] .canvas-observation {
  animation-delay: 1450ms;
}

@keyframes canvas-observation-in {
  from { opacity: 0; transform: translate(-50%, 9px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.canvas-question {
  right: 18px;
  bottom: 18px;
  width: min(356px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(18, 20, 41, 0.9);
  color: #fff;
  box-shadow: 0 22px 48px rgba(2, 4, 15, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.canvas-question > small {
  display: none;
}

.canvas-question > small i {
  font-size: 11px;
  font-style: normal;
}

.canvas-question > strong {
  display: block;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.canvas-answer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.canvas-answer-options button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 780;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.canvas-answer-options button:hover,
.canvas-answer-options button:focus-visible {
  border-color: rgba(191, 181, 255, 0.65);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.canvas-demo[data-hero-scene="canvas"][data-hero-phase="question"] .canvas-question,
.canvas-demo[data-hero-scene="canvas"][data-hero-phase="choose"] .canvas-question {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.canvas-demo[data-hero-scene="canvas"][data-hero-phase="choose"] [data-hero-answer="layer"] {
  border-color: #9e8df4;
  background: #7864e4;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(158, 141, 244, 0.13);
}

.canvas-answer-options button.is-wrong {
  border-color: rgba(255, 151, 151, 0.7);
  background: rgba(255, 113, 113, 0.18);
}

.canvas-vibeblock {
  bottom: 18px;
  left: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  background: rgba(13, 16, 35, 0.9);
  box-shadow: 0 22px 48px rgba(2, 4, 15, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  backdrop-filter: blur(16px);
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.canvas-vibeblock > small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.56);
}

.canvas-vibeblock > small i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #8b74ee;
  box-shadow: 9px 0 #ffd352, 18px 0 #63c98b;
}

.canvas-vibeblock > small span {
  margin-left: 19px;
  color: #d2ccff;
}

.canvas-vibeblock > small em {
  display: none;
}

.vibeblock-command {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  min-height: 48px;
  padding: 7px 9px 7px 14px;
  border-radius: 13px 13px 13px 6px;
  background: #6755d5;
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  box-shadow: inset 0 -2px rgba(29, 23, 87, 0.24);
}

.canvas-demo[data-hero-scene="machine"] .vibeblock-command {
  background: #3d825f;
}

.canvas-demo[data-hero-scene="game"] .vibeblock-command {
  background: #ae4770;
}

.vibeblock-command::before {
  align-self: stretch;
  width: 4px;
  border-radius: 9px;
  background: #ffd352;
  content: "";
}

.vibeblock-command strong {
  position: relative;
  min-width: 70px;
  padding: 7px 21px 7px 9px;
  border-radius: 8px;
  background: #fff;
  color: #292938;
  text-align: center;
  transition: color 220ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.vibeblock-command strong::after {
  position: absolute;
  top: 50%;
  right: 8px;
  color: #8a8c95;
  content: "▾";
  font-size: 8px;
  transform: translateY(-50%);
}

.canvas-demo.is-block-fixed .vibeblock-command strong {
  color: #3f35b0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  transform: scale(1.04);
}

.canvas-demo[data-hero-phase="edit"] .canvas-vibeblock {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.canvas-success {
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(360px, calc(100% - 36px));
  min-height: 68px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(121, 230, 166, 0.27);
  border-radius: 18px;
  background: rgba(12, 31, 26, 0.88);
  color: #fff;
  box-shadow: 0 22px 48px rgba(1, 9, 6, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  backdrop-filter: blur(15px);
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.canvas-success > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #63d390;
  color: #082216;
  font-size: 16px;
  font-style: normal;
}

.canvas-success > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.canvas-success small {
  display: none;
}

.canvas-demo[data-hero-scene="game"] .canvas-success {
  border-color: rgba(255, 215, 106, 0.25);
  background: rgba(38, 29, 10, 0.9);
}

.canvas-demo[data-hero-scene="game"] .canvas-success > i {
  background: #ffd76a;
  color: #281c04;
}

.canvas-demo[data-hero-scene="game"] .canvas-success small {
  color: #ffe39a;
}

.canvas-success strong {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
}

.canvas-demo[data-hero-phase="success"] .canvas-success {
  animation: canvas-success-in 280ms 520ms both;
}

@keyframes canvas-success-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.canvas-auto-cursor {
  right: 170px;
  bottom: 54px;
  display: block;
  width: 27px;
  height: 35px;
  opacity: 0;
  transform: translate(70px, 36px);
  pointer-events: none;
  transition: right 620ms cubic-bezier(0.2, 0.78, 0.2, 1), bottom 620ms cubic-bezier(0.2, 0.78, 0.2, 1), opacity 220ms ease, transform 620ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.canvas-auto-cursor > i {
  display: block;
  width: 25px;
  height: 33px;
  background: #fff;
  clip-path: polygon(3% 0, 3% 78%, 27% 61%, 47% 100%, 66% 90%, 46% 56%, 80% 56%);
  filter:
    drop-shadow(1px 0 0 #15161c)
    drop-shadow(-1px 0 0 #15161c)
    drop-shadow(0 1px 0 #15161c)
    drop-shadow(0 -1px 0 #15161c)
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.34));
  transform: rotate(-5deg);
  transform-origin: 3% 0;
}

.canvas-auto-cursor::after {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(191, 181, 255, 0.8);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.3);
}

.canvas-demo[data-hero-phase="choose"] .canvas-auto-cursor {
  opacity: 1;
  transform: translate(0, 0);
}

.canvas-demo[data-hero-phase="choose"] .canvas-auto-cursor::after {
  animation: canvas-cursor-click 1.8s 0.7s ease-out both;
}

@keyframes canvas-cursor-click {
  0% { opacity: 0; transform: scale(0.3); }
  18% { opacity: 0.9; }
  58%, 100% { opacity: 0; transform: scale(1.35); }
}

.canvas-demo[data-hero-phase="edit"] .canvas-auto-cursor {
  right: calc(100% - 282px);
  bottom: 65px;
  opacity: 1;
  transform: translate(0, 0);
}

.canvas-console {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 0;
}

.canvas-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-width: 0;
}

.canvas-sequence > button {
  display: block;
  min-width: 0;
  padding: 8px 3px;
  border-radius: 8px;
  background: transparent;
  color: #a0a2aa;
  cursor: pointer;
}

.canvas-sequence i {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #d9dadd;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.canvas-sequence b {
  display: none;
}

.canvas-sequence > button.is-complete,
.canvas-sequence > button.is-active {
  color: #3e4048;
}

.canvas-sequence > button.is-complete i {
  background: #727a91;
}

.canvas-sequence > button.is-active i {
  background: #596aef;
  box-shadow: 0 0 0 2px rgba(89, 106, 239, 0.11);
}

.canvas-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  width: 41px;
  padding: 0;
  border-radius: 13px;
  background: #1b1c22;
  color: #fff;
  font-size: 9px;
  font-weight: 790;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.canvas-replay > span {
  display: none;
}

.canvas-replay:hover {
  transform: translateY(-1px);
  background: #4f60ea;
}

.canvas-replay b {
  font-size: 13px;
}

@media (max-width: 680px) {
  .canvas-showcase {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 22px;
  }

  .canvas-showcase-bar {
    position: absolute;
    z-index: 12;
    top: 10px;
    right: 10px;
    left: 10px;
    min-height: 30px;
    padding: 0;
    font-size: 9px;
    pointer-events: none;
  }

  .canvas-showcase-title {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(16, 18, 32, 0.72);
    color: #fff;
    box-shadow: 0 8px 22px rgba(5, 6, 16, 0.18);
    backdrop-filter: blur(12px);
  }

  .canvas-showcase-title > b {
    border-left-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.58);
  }

  .canvas-playback {
    min-width: 30px;
    min-height: 30px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(16, 18, 32, 0.72);
    color: #fff;
    pointer-events: auto;
    backdrop-filter: blur(12px);
  }

  .canvas-playback > span,
  .canvas-playback > i {
    display: none;
  }

  .canvas-playback > b {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .canvas-stage {
    min-height: 370px;
    border-width: 0;
    border-radius: 22px;
  }

  .canvas-mission {
    top: 12px;
    right: 12px;
    left: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    width: auto;
    min-height: 61px;
    padding: 8px 11px 8px 8px;
    border-radius: 15px;
  }

  .canvas-mission > span {
    width: 34px;
    height: 34px;
  }

  .canvas-mission strong {
    font-size: 10px;
  }

  .canvas-intent {
    top: 82px;
    right: 12px;
    width: 86px;
    min-height: 48px;
    padding: 7px 9px;
  }

  .canvas-observation {
    bottom: 15px;
    max-width: calc(100% - 24px);
    font-size: 8px;
    white-space: nowrap;
  }

  .canvas-question {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .canvas-question > strong {
    font-size: 12px;
  }

  .canvas-answer-options button {
    min-height: 36px;
    padding-inline: 4px;
  }

  .canvas-vibeblock,
  .canvas-success {
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .vibeblock-command {
    gap: 5px;
    padding-left: 9px;
    font-size: 8px;
  }

  .vibeblock-command strong {
    min-width: 62px;
  }

  .canvas-auto-cursor {
    right: 45%;
    bottom: 45px;
  }

  .canvas-demo[data-hero-phase="edit"] .canvas-auto-cursor {
    right: 43%;
    bottom: 58px;
  }

  .canvas-console {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px 0;
  }

  .canvas-sequence {
    grid-template-columns: repeat(3, 1fr);
  }

  .canvas-sequence > button {
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 3px;
  }

  .canvas-sequence b {
    font-size: 7px;
  }

  .canvas-replay {
    min-height: 38px;
    padding-inline: 10px;
  }

  .canvas-replay span {
    display: none;
  }
}

.work-index {
  padding-top: 80px;
  padding-bottom: 92px;
}

.work-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 38px;
}

.work-index-heading .eyebrow {
  margin-bottom: 17px;
}

.work-index-heading h2 {
  max-width: 680px;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 820;
}

.work-index-heading > p {
  max-width: 510px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.work-index-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.work-index-card {
  display: flex;
  min-width: 0;
  min-height: 176px;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 26, 0.07);
  border-radius: 25px;
  background: #ece8ff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-index-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(82, 103, 247, 0.22);
  box-shadow: 0 20px 38px rgba(42, 43, 57, 0.12);
}

.work-index-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: auto;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: #4d45a7;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.work-index-card strong {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.work-index-card small {
  margin-top: 5px;
  color: rgba(21, 22, 26, 0.52);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.35;
  white-space: nowrap;
}

.work-index-card.physical { background: #e1f1ff; }
.work-index-card.games { background: #fff0de; }
.work-index-card.apps { background: #ffe7ee; }
.work-index-card.stories { background: #e7f3d2; }
.work-index-card.data { background: #fff1ae; }
.work-index-card.physical > span { color: #317ba6; }
.work-index-card.games > span { color: #b56a25; }
.work-index-card.apps > span { color: #b14c6b; }
.work-index-card.stories > span { color: #598a30; }
.work-index-card.data > span { color: #8b7315; }

.method-section {
  margin-top: 22px;
  padding: 126px 0 136px;
  border-radius: 44px 44px 0 0;
  background: #fff;
}

.section-heading {
  max-width: 880px;
}

.section-heading h2,
.context-copy h2,
.school-copy h2,
.final-copy h2 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 820;
}

.method-heading {
  margin-bottom: 90px;
}

.method-heading h2 {
  max-width: 850px;
}

.method-lead {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.method-list {
  display: grid;
  gap: 96px;
}

.method-row {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 1.25fr);
  align-items: center;
  gap: 80px;
  min-height: 460px;
}

.method-row.reverse .method-copy {
  order: 2;
}

.method-row.reverse .method-visual {
  order: 1;
}

.method-copy {
  max-width: 470px;
}

.method-copy > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 25px;
  border-radius: 14px;
  background: var(--lavender-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.method-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(34px, 3.7vw, 54px);
  font-weight: 800;
}

.method-copy p {
  color: #60626a;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.method-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 490px;
  overflow: hidden;
  border-radius: 38px;
  background: var(--lavender-light);
}

.visual-result {
  grid-template-columns: 190px 50px 290px;
  background: #e7e3ff;
}

.visual-prompt {
  padding: 18px 20px;
  border-radius: 18px 18px 4px 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(49, 50, 74, 0.13);
  font-size: 17px;
  font-weight: 750;
}

.visual-arrow {
  color: var(--blue);
  font-size: 34px;
}

.visual-sky {
  position: relative;
  width: 260px;
  height: 300px;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 31px;
  background: linear-gradient(155deg, #111835, #372466);
  box-shadow: 0 22px 50px rgba(39, 39, 77, 0.2);
}

.visual-sky i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.visual-sky i:nth-child(1) { top: 21%; left: 22%; }
.visual-sky i:nth-child(2) { top: 36%; left: 68%; }
.visual-sky i:nth-child(3) { top: 57%; left: 35%; }
.visual-sky i:nth-child(4) { top: 73%; left: 74%; }
.visual-sky i:nth-child(5) { top: 18%; left: 78%; }
.visual-sky i:nth-child(6) { top: 80%; left: 18%; }

.visual-sky span {
  position: absolute;
  top: 64px;
  left: 25px;
  width: 130px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(24deg);
}

.visual-question {
  background: #e7f3ff;
}

.question-stage {
  position: absolute;
  inset: 54px 70px 130px;
  overflow: hidden;
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(49, 66, 84, 0.13);
}

.question-stage::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 3px dashed #a3b3c4;
  border-radius: 48% 52% 42% 58%;
  transform: rotate(-7deg);
}

.tiny-car {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 57%;
  width: 46px;
  height: 27px;
  border-radius: 9px;
  background: var(--blue);
  transform: rotate(14deg);
}

.tiny-car::before,
.tiny-car::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d2130;
}

.tiny-car::before { left: 5px; }
.tiny-car::after { right: 5px; }

.question-stage i {
  position: absolute;
  top: 48%;
  left: 24%;
  width: 42%;
  border-top: 3px solid var(--peach);
  transform: rotate(9deg);
}

.question-bubble {
  position: absolute;
  z-index: 3;
  right: 44px;
  bottom: 100px;
  padding: 17px 22px;
  border-radius: 20px 20px 4px 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(21, 22, 26, 0.2);
  font-weight: 750;
  line-height: 1.35;
}

.answer-chips {
  position: absolute;
  bottom: 46px;
  left: 55px;
  display: flex;
  gap: 8px;
}

.answer-chips span {
  padding: 9px 13px;
  border: 1px solid rgba(21, 22, 26, 0.12);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.visual-trace {
  align-content: center;
  padding: 70px 85px;
  background: #fff1d6;
}

.trace-head,
.trace-row {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  gap: 22px;
  width: min(100%, 520px);
}

.trace-head {
  margin-bottom: 10px;
  padding: 0 4px;
  color: #8a7656;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.trace-row {
  align-items: center;
  margin: 6px 0;
  padding: 17px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(94, 71, 34, 0.08);
}

.trace-row i,
.trace-row b {
  height: 9px;
  border-radius: 999px;
  background: #d9d7cf;
}

.trace-row b {
  background: var(--blue);
}

.trace-row b.short {
  width: 58%;
  background: #ff8f73;
}

.trace-row em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4f7d4;
  color: #3a8d47;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.trace-row:nth-of-type(3) em {
  background: #ffe0d9;
  color: #d45338;
}

.trace-next {
  width: min(100%, 520px);
  margin-top: 16px;
  padding: 14px 18px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.visual-projects {
  background: #e8f5e8;
}

.project-card {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(72%, 460px);
  padding: 23px 25px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(40, 68, 43, 0.13);
}

.project-card span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: var(--lavender);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.project-card b {
  font-size: 17px;
}

.project-card i {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f5df;
  color: #3c8648;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.project-card.p1 { top: 82px; left: 14%; transform: rotate(-4deg); }
.project-card.p2 { top: 198px; left: 20%; z-index: 2; transform: rotate(2deg); }
.project-card.p3 { top: 314px; left: 12%; transform: rotate(-1deg); }
.project-card.p2 span { background: var(--lime); color: var(--ink); }
.project-card.p2 i { background: #fff0bd; color: #8d6914; }
.project-card.p3 { opacity: 0.72; }

/* Product stories — actual VibeBlocks surfaces, condensed for the landing page. */
.product-story {
  --story-purple: #5b5fc7;
  --story-purple-soft: #ececff;
  --story-green: #168b74;
  --story-green-soft: #e7f7f2;
  --story-ink: #20222b;
  --story-muted: #747784;
  --story-line: #e2e3eb;
  --story-surface: #fff;
  padding: 30px;
  place-items: stretch;
  background: #e9e8ff;
}

.product-story .story-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(37, 39, 56, 0.11);
  border-radius: 27px;
  background: var(--story-surface);
  box-shadow: 0 22px 54px rgba(43, 44, 78, 0.16);
  color: var(--story-ink);
  font-family: inherit;
}

.character-edge-overlay {
  position: absolute;
  z-index: 8;
  display: block;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(32, 34, 43, 0.16));
  transform-origin: center bottom;
  animation: characterEdgeFloat 5.2s ease-in-out infinite;
}

.character-edge-yellow {
  bottom: 42px;
  left: -12px;
  width: 152px;
}

.character-edge-purple {
  top: 62px;
  right: -8px;
  width: 136px;
  animation-delay: -1.1s;
}

.character-edge-green {
  bottom: 52px;
  left: -24px;
  width: 174px;
  animation-delay: -2.2s;
}

.character-edge-pink {
  right: 0;
  bottom: 24px;
  width: 96px;
  animation-delay: -3.1s;
}

@keyframes characterEdgeFloat {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-5px) rotate(0.8deg); }
}

.story-appbar,
.course-story-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--story-line);
  background: rgba(255, 255, 255, 0.96);
}

.story-route {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  min-width: 0;
}

.story-route > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #595c69;
  font-size: 22px;
  font-weight: 650;
}

.story-route strong {
  overflow: hidden;
  color: var(--story-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-route small {
  overflow: hidden;
  color: var(--story-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-modes {
  display: inline-flex;
  overflow: hidden;
  padding: 2px;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  background: #f5f5f8;
}

.story-modes span {
  min-width: 47px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #858792;
  font-size: 9px;
  font-weight: 820;
  text-align: center;
}

.story-modes span.is-active {
  background: var(--story-purple);
  box-shadow: 0 3px 9px rgba(91, 95, 199, 0.25);
  color: #fff;
}

/* 01 — prompt → VibeBlock → live stage */
.story-create .create-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  flex: 1;
  min-height: 290px;
}

.create-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgba(105, 83, 194, 0.45), transparent 26%),
    radial-gradient(circle at 76% 78%, rgba(61, 126, 167, 0.3), transparent 24%),
    linear-gradient(145deg, #10152e 0%, #252353 56%, #171d3d 100%);
}

.create-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 28, 0.45));
}

.stage-status,
.story-run-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f5360;
  font-size: 9px;
  font-weight: 800;
}

.stage-status {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 20, 43, 0.58);
  color: #fff;
  backdrop-filter: blur(8px);
}

.stage-status i,
.story-run-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35c49a;
  box-shadow: 0 0 0 4px rgba(53, 196, 154, 0.13);
}

.create-moon {
  position: absolute;
  z-index: 3;
  top: 28%;
  right: 16%;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 35%, rgba(157, 151, 180, 0.27) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 68%, rgba(157, 151, 180, 0.22) 0 12%, transparent 13%),
    #fffbe6;
  box-shadow: 0 0 38px rgba(255, 246, 192, 0.44);
}

.create-comet {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 13%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px #fff;
  animation: storyComet 5.5s cubic-bezier(0.42, 0, 0.35, 1) infinite;
}

.create-comet::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 5px;
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(157, 221, 255, 0.25), #fff);
  transform: rotate(15deg);
  transform-origin: right center;
}

@keyframes storyComet {
  0%, 12% { transform: translate(-45px, -8px); opacity: 0; }
  20% { opacity: 1; }
  70% { opacity: 1; }
  80%, 100% { transform: translate(235px, 82px); opacity: 0; }
}

.create-star {
  position: absolute;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.8);
}

.create-star.s1 { top: 22%; left: 26%; }
.create-star.s2 { top: 67%; left: 19%; }
.create-star.s3 { top: 48%; left: 48%; }
.create-star.s4 { top: 75%; left: 70%; }
.create-star.s5 { top: 17%; left: 77%; }

.vibeblock-panel {
  min-width: 0;
  padding: 18px 16px;
  border-left: 1px solid var(--story-line);
  background: #f8f8fb;
}

.story-panel-title,
.story-ai-head,
.intent-card-head,
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-panel-title > span {
  color: var(--story-purple);
  font-size: 11px;
  font-weight: 900;
}

.story-panel-title em {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--story-green-soft);
  color: var(--story-green);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.vibeblock-card {
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(91, 95, 199, 0.25);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(42, 43, 71, 0.08);
}

.vibeblock-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 11px;
  background: linear-gradient(90deg, var(--story-purple) 0 5px, #f0efff 5px 100%);
}

.vibeblock-card-head i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--story-purple);
}

.vibeblock-card-head strong { font-size: 10px; font-weight: 870; }
.vibeblock-card-head span { color: var(--story-purple); font-size: 11px; }

.vibeblock-card > p {
  margin: 0;
  padding: 11px 11px 2px;
  color: #555864;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.vibeblock-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 11px 12px;
}

.vibeblock-values > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid #dddcf4;
  border-radius: 7px;
  background: #f7f6ff;
}

.vibeblock-values small { color: #898b97; font-size: 7px; font-weight: 750; }
.vibeblock-values b { color: var(--story-purple); font-size: 8px; font-weight: 900; }

.story-promptbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 13px;
  border-top: 1px solid var(--story-line);
  background: #fff;
}

.story-promptbar > span {
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid #d9dae4;
  border-radius: 10px;
  color: #4b4e59;
  font-size: 9px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-promptbar > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--story-green);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(22, 139, 116, 0.22);
}

/* 02 — stage + AI question */
.story-question { background: #dff0ff; }

.story-run-state {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f8f5;
  color: var(--story-green);
}

.machine-stage {
  position: relative;
  flex: 1;
  min-height: 370px;
  overflow: hidden;
  background: #e9edf2;
}

.machine-grid {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(95, 106, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 106, 121, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.machine-track {
  position: absolute;
  top: 42px;
  left: 9%;
  width: 74%;
  height: 210px;
  border-radius: 98px 52px 82px 48px;
  background: #cc8d56;
  box-shadow: inset 0 0 0 2px rgba(113, 64, 31, 0.13), 0 12px 24px rgba(82, 77, 72, 0.14);
  transform: rotate(-4deg);
}

.machine-track::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 68px 28px 58px 25px;
  background: #e9edf2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.machine-track::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 2px dashed rgba(255, 248, 225, 0.72);
  border-radius: 82px 39px 69px 34px;
}

.track-start,
.track-turn {
  position: absolute;
  z-index: 2;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.track-start { bottom: 7px; left: 27%; width: 5px; height: 26px; }
.track-turn { top: 18px; right: 19%; width: 28px; height: 5px; }

.story-machine {
  position: absolute;
  z-index: 3;
  top: 157px;
  right: 15%;
  width: 66px;
  height: 42px;
  border: 2px solid #dbdce5;
  border-radius: 15px 15px 10px 10px;
  background: linear-gradient(145deg, #fff, #ececf4);
  box-shadow: 0 10px 18px rgba(39, 42, 53, 0.18);
  transform: rotate(35deg);
  animation: storyMachineDrift 3.2s ease-in-out infinite;
}

@keyframes storyMachineDrift {
  0%, 100% { transform: rotate(35deg) translate(0, 0); }
  50% { transform: rotate(35deg) translate(3px, -2px); }
}

.story-machine > span {
  position: absolute;
  top: 9px;
  left: 18px;
  width: 28px;
  height: 16px;
  border-radius: 7px;
  background: var(--story-purple);
  box-shadow: inset 0 -3px rgba(37, 39, 111, 0.2);
}

.story-machine > i,
.story-machine > b {
  position: absolute;
  bottom: -6px;
  width: 17px;
  height: 11px;
  border-radius: 7px;
  background: #292b34;
}

.story-machine > i { left: 6px; }
.story-machine > b { right: 6px; }

.path-error {
  position: absolute;
  z-index: 3;
  top: 104px;
  right: 7%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(218, 91, 71, 0.25);
  border-radius: 8px;
  background: rgba(255, 242, 239, 0.94);
  color: #bf4d3d;
  font-size: 8px;
  font-weight: 850;
}

.path-error i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc624f;
  animation: storyErrorPulse 1.8s ease-in-out infinite;
}

@keyframes storyErrorPulse {
  50% { box-shadow: 0 0 0 6px rgba(220, 98, 79, 0.12); }
}

.story-ai-card {
  position: absolute;
  z-index: 6;
  right: 22px;
  bottom: 20px;
  left: 22px;
  padding: 16px 17px;
  border: 1px solid rgba(91, 95, 199, 0.25);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(42, 45, 65, 0.18);
  backdrop-filter: blur(11px);
}

.story-ai-head { margin-bottom: 8px; }
.story-ai-head > span { color: var(--story-purple); font-size: 9px; font-weight: 800; }
.story-ai-head small { color: #9a9ca6; font-size: 8px; font-weight: 800; }

.story-ai-card > strong {
  display: block;
  max-width: 390px;
  color: #2f313b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.42;
}

.story-choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.story-choice-chips span {
  padding: 7px 10px;
  border: 1px solid #dddde7;
  border-radius: 999px;
  background: #fff;
  color: #696b77;
  font-size: 8px;
  font-weight: 800;
}

.story-choice-chips span.is-selected {
  border-color: var(--story-purple);
  background: var(--story-purple);
  color: #fff;
  box-shadow: 0 5px 11px rgba(91, 95, 199, 0.2);
}

/* 03 — inspect the gap in Vibe view */
.story-inspect { background: #fff0d6; }

.inspect-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 41px;
  border-bottom: 1px solid var(--story-line);
  background: #fafafd;
}

.inspect-tabs span {
  position: relative;
  display: grid;
  place-items: center;
  color: #8a8c97;
  font-size: 9px;
  font-weight: 800;
}

.inspect-tabs span.is-active { color: var(--story-purple); }

.inspect-tabs span.is-active::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 0;
  left: 22%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--story-purple);
}

.inspect-content {
  display: grid;
  align-content: center;
  flex: 1;
  gap: 12px;
  padding: 20px clamp(18px, 5vw, 46px);
  background: #f5f5f9;
}

.intent-card {
  overflow: hidden;
  border: 1px solid rgba(22, 139, 116, 0.27);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(39, 42, 56, 0.08);
}

.intent-card-head {
  min-height: 48px;
  padding: 10px 13px;
  background: var(--story-green-soft);
}

.intent-card-head > span { display: inline-flex; align-items: center; gap: 8px; }
.intent-card-head i { width: 9px; height: 9px; border-radius: 3px; background: var(--story-green); }
.intent-card-head b { font-size: 10px; font-weight: 900; }
.intent-card-head em { padding: 4px 7px; border-radius: 999px; background: #fff; color: var(--story-green); font-size: 7px; font-style: normal; font-weight: 850; }

.intent-card > p {
  margin: 0;
  padding: 10px 13px;
  border-bottom: 1px solid #ededf2;
  color: #5a5d68;
  font-size: 9px;
  font-weight: 720;
}

.compare-table { padding: 5px 12px 11px; }

.compare-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  border-bottom: 1px solid #eeeef3;
}

.compare-table > div:last-child { border-bottom: 0; }

.compare-table .compare-head {
  color: #9a9ca6;
  font-size: 7px;
  font-weight: 850;
}

.compare-table strong { color: #686b76; font-size: 8px; font-weight: 850; }

.compare-table > div > span {
  justify-self: start;
  padding: 5px 7px;
  border-radius: 6px;
  background: #f2f2f6;
  color: #565965;
  font-size: 8px;
  font-weight: 800;
}

.compare-table > div > span.is-match { background: #e8f6ef; color: #24795e; }

.compare-table > div > span.has-gap {
  position: relative;
  border: 1px solid #e78b74;
  background: #fff0eb;
  color: #b94f39;
  animation: storyGapFocus 2.2s ease-in-out infinite;
}

@keyframes storyGapFocus {
  50% { box-shadow: 0 0 0 4px rgba(231, 139, 116, 0.12); }
}

.next-change {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(91, 95, 199, 0.3);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(51, 53, 83, 0.08);
}

.next-change > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--story-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.next-change > div { display: grid; gap: 2px; }
.next-change small { color: #8b8d99; font-size: 7px; font-weight: 780; }
.next-change strong { color: var(--story-purple); font-size: 10px; font-weight: 900; }
.next-change > b { color: var(--story-purple); font-size: 15px; }

/* 04 — course progress carries the directing loop forward */
.story-course { background: #e6f4e2; }

.course-story-head {
  min-height: 70px;
  padding-right: 18px;
}

.course-story-score { display: flex; align-items: baseline; gap: 6px; }
.course-story-score strong { color: var(--story-purple); font-size: 20px; font-weight: 900; }
.course-story-score strong span { color: #a9aab3; font-size: 11px; }
.course-story-score small { color: #8a8c97; font-size: 8px; font-weight: 750; }

.course-progress-card {
  display: grid;
  gap: 10px;
  margin: 14px 18px 5px;
  padding: 13px 14px;
  border: 1px solid rgba(91, 95, 199, 0.18);
  border-radius: 14px;
  background: #f6f6ff;
}

.course-progress-card > div { display: grid; gap: 4px; }
.course-progress-card small { color: var(--story-purple); font-size: 7px; font-weight: 900; }
.course-progress-card strong { color: #373944; font-size: 10px; font-weight: 840; line-height: 1.35; }

.course-progress-card > span {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e2ec;
}

.course-progress-card > span i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--story-purple);
}

.course-lessons {
  position: relative;
  display: grid;
  align-content: center;
  flex: 1;
  gap: 9px;
  padding: 13px 18px 18px 30px;
  background: #fbfbfd;
}

.course-rail {
  position: absolute;
  top: 35px;
  bottom: 42px;
  left: 49px;
  width: 2px;
  background: linear-gradient(var(--story-green) 0 66%, #dedfe7 66% 100%);
}

.course-lesson {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 9px 12px 9px 0;
  border: 1px solid #e5e5eb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(42, 45, 57, 0.06);
}

.course-lesson > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-left: -1px;
  border: 4px solid #fbfbfd;
  border-radius: 50%;
  background: #dfe0e7;
  color: #7c7e89;
  font-size: 10px;
  font-weight: 900;
}

.course-lesson.is-done > span { background: var(--story-green); color: #fff; }
.course-lesson.is-current { border-color: rgba(91, 95, 199, 0.36); box-shadow: 0 7px 20px rgba(91, 95, 199, 0.12); }
.course-lesson.is-current > span { background: var(--story-purple); color: #fff; animation: storyCurrentLesson 2.4s ease-in-out infinite; }

@keyframes storyCurrentLesson {
  50% { box-shadow: 0 0 0 6px rgba(91, 95, 199, 0.13); }
}

.course-lesson > div { display: grid; gap: 2px; min-width: 0; }
.course-lesson small { color: var(--story-purple); font-size: 7px; font-weight: 900; }
.course-lesson strong { overflow: hidden; color: #393b45; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.course-lesson em { overflow: hidden; color: #93959f; font-size: 7px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.course-lesson > b { color: var(--story-green); font-size: 10px; font-weight: 900; }
.course-lesson.is-current > b { color: var(--story-purple); font-size: 15px; }

.domains-section {
  padding-top: 126px;
  padding-bottom: 130px;
}

.domains-heading {
  max-width: 850px;
  margin-bottom: 60px;
}

.domains-heading > p:last-child {
  max-width: 690px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}

.domain-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.domain-tabs::-webkit-scrollbar {
  display: none;
}

.domain-tabs button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #64666e;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.domain-tabs button:hover {
  transform: translateY(-2px);
}

.domain-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.domain-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 70px;
  min-height: 650px;
  padding: 56px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--dark);
  color: #fff;
}

.domain-panel.is-active {
  animation: panel-in 330ms ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.domain-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
}

.domain-number {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #b8c0ff;
  font-size: 13px;
  font-weight: 850;
}

.domain-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(40px, 4.2vw, 62px);
}

.domain-copy > p {
  color: #b8bac2;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}

.topic-group,
.track-line {
  display: grid;
  gap: 7px;
  margin-top: 30px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.track-line {
  margin-top: 14px;
}

.topic-group small,
.track-line small {
  color: #858891;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-group span,
.track-line > span {
  color: #f6f6f2;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

.domain-media {
  position: relative;
  align-self: center;
  min-height: 535px;
  overflow: hidden;
  border-radius: 29px;
  background: #f6f6f3;
  color: var(--ink);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.scene-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 49px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.09);
  background: #fff;
}

.scene-toolbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7d6d1;
}

.scene-toolbar i:first-child { background: #ff9583; }
.scene-toolbar i:nth-child(2) { background: #ffd269; }
.scene-toolbar i:nth-child(3) { background: #76d59a; }

.scene-toolbar span {
  margin-left: auto;
  color: #686a72;
  font-size: 11px;
  font-weight: 760;
}

.scene-caption {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(23, 25, 31, 0.09);
  color: #575960;
  font-size: 12px;
  font-weight: 770;
  backdrop-filter: blur(10px);
}

.creative-scene {
  position: absolute;
  inset: 49px 0 0;
  background: linear-gradient(155deg, #101831, #2e215f 65%, #592f71);
}

.creative-scene::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -17%;
  left: -8%;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background: #111526;
}

.scene-moon {
  position: absolute;
  top: 60px;
  right: 58px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff4af;
  box-shadow: 0 0 45px rgba(255, 244, 175, 0.4);
}

.scene-moon::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #171a3e;
}

.creative-scene i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.creative-scene i:nth-of-type(1) { top: 22%; left: 18%; }
.creative-scene i:nth-of-type(2) { top: 48%; left: 68%; }
.creative-scene i:nth-of-type(3) { top: 68%; left: 28%; }
.creative-scene i:nth-of-type(4) { top: 30%; left: 48%; }

.creative-scene b {
  position: absolute;
  top: 105px;
  left: 26%;
  width: 180px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff);
  box-shadow: 14px 0 15px rgba(255, 255, 255, 0.65);
  transform: rotate(21deg);
  animation: scenic-comet 3s ease-in-out infinite;
}

@keyframes scenic-comet {
  0%, 18% { opacity: 0; transform: translate(-80px, -25px) rotate(21deg); }
  34%, 75% { opacity: 1; }
  100% { opacity: 0; transform: translate(250px, 105px) rotate(21deg); }
}

.physical-media { background: #eef7e9; }

.device-scene {
  position: absolute;
  inset: 49px 0 0;
  display: grid;
  place-items: center;
}

.device-board {
  position: relative;
  width: 280px;
  height: 190px;
  border: 10px solid #fff;
  border-radius: 31px;
  background: #2c8367;
  box-shadow: 0 25px 50px rgba(25, 92, 72, 0.2);
  transform: rotate(-5deg);
}

.device-board::before,
.device-board::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #23332f;
  box-shadow: inset 0 0 0 7px #40544e;
}

.device-board::before { top: 28px; left: 32px; }
.device-board::after { right: 28px; bottom: 30px; }

.device-board span {
  position: absolute;
  top: 25px;
  right: 38px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ff71;
  box-shadow: 0 0 28px #dbff42;
  animation: pulse-led 1.4s ease-in-out infinite alternate;
}

@keyframes pulse-led {
  to { opacity: 0.45; box-shadow: 0 0 8px #dbff42; }
}

.device-board i {
  position: absolute;
  left: 103px;
  width: 67px;
  height: 13px;
  border-radius: 4px;
  background: #d6d7c9;
}

.device-board i:first-of-type { top: 55px; }
.device-board i:last-of-type { top: 84px; }

.device-board b {
  position: absolute;
  bottom: -58px;
  left: 76px;
  width: 125px;
  height: 70px;
  border: 8px solid #5d72f3;
  border-top: 0;
  border-radius: 0 0 60px 60px;
}

.sensor-wave {
  position: absolute;
  top: 114px;
  left: calc(50% - 210px);
  width: 92px;
  height: 92px;
  border: 4px solid rgba(82, 103, 247, 0.35);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.sensor-wave.w2 {
  top: 96px;
  left: calc(50% - 232px);
  width: 130px;
  height: 130px;
  opacity: 0.55;
}

.device-light {
  position: absolute;
  top: 110px;
  right: 70px;
  width: 58px;
  height: 110px;
  border-radius: 50% 50% 20px 20px;
  background: linear-gradient(#f5ff96, #ddf159);
  box-shadow: 0 0 55px rgba(211, 235, 76, 0.72);
}

.games-media { background: #f0e8ff; }

.game-scene {
  position: absolute;
  inset: 49px 0 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(145deg, #806de7, #cf8ddb);
  background-size: 52px 52px, 52px 52px, auto;
}

.game-scene::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
  height: 22px;
  background: #312d5b;
  box-shadow: 0 22px 0 #29274d;
}

.game-player {
  position: absolute;
  z-index: 2;
  bottom: 123px;
  left: 46%;
  width: 47px;
  height: 57px;
  border-radius: 17px 17px 8px 8px;
  background: var(--lime);
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.12);
}

.game-player::before,
.game-player::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #252641;
}

.game-player::before { left: 11px; }
.game-player::after { right: 11px; }

.word {
  position: absolute;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(54, 40, 88, 0.16);
  color: #33324d;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  animation: word-fall 3.2s linear infinite;
}

.word.one { top: 20px; left: 21%; }
.word.two { top: -40px; left: 58%; animation-delay: -1.3s; }
.word.three { top: 70px; left: 75%; animation-delay: -2.1s; }

@keyframes word-fall {
  from { transform: translateY(-70px); }
  to { transform: translateY(430px); }
}

.game-scene b {
  position: absolute;
  top: 43%;
  left: 51%;
  color: #fff;
  font-size: 27px;
  text-shadow: 0 4px 12px rgba(49, 39, 87, 0.3);
}

.apps-media { background: #e6f4ff; }

.app-scene {
  position: absolute;
  inset: 85px 50px 83px;
  display: grid;
  grid-template-columns: 95px 1fr;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(46, 88, 119, 0.17);
}

.app-sidebar {
  background: var(--blue);
}

.app-sidebar::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin: 25px auto;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 72px 0 -10px rgba(255, 255, 255, 0.45), 0 115px 0 -10px rgba(255, 255, 255, 0.45);
}

.app-content {
  position: relative;
  padding: 39px 34px;
  background: #f9fafb;
}

.app-content > span {
  display: block;
  width: 55%;
  height: 17px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #262934;
}

.app-content i {
  display: block;
  height: 43px;
  margin: 10px 0;
  border: 1px solid #e1e3e7;
  border-radius: 12px;
  background: #fff;
}

.app-content i::before {
  content: "";
  display: block;
  width: 55%;
  height: 8px;
  margin: 17px;
  border-radius: 99px;
  background: #cfd3db;
}

.app-content button {
  position: absolute;
  right: 28px;
  bottom: 24px;
  padding: 10px 19px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.stories-media { background: #fff0e8; }

.story-scene {
  position: absolute;
  inset: 49px 0 0;
}

.character {
  position: absolute;
  z-index: 3;
  top: 73px;
  left: calc(50% - 48px);
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 9px solid #fff;
  border-radius: 31px;
  background: var(--peach);
  box-shadow: 0 19px 35px rgba(126, 78, 62, 0.18);
  font-size: 31px;
  font-weight: 900;
}

.path {
  position: absolute;
  z-index: 1;
  background: #d5a18c;
}

.path.stem {
  top: 160px;
  left: calc(50% - 2px);
  width: 4px;
  height: 102px;
}

.path.left,
.path.right {
  top: 247px;
  width: 34%;
  height: 4px;
}

.path.left { right: 50%; transform: rotate(-22deg); transform-origin: right; }
.path.right { left: 50%; transform: rotate(22deg); transform-origin: left; }

.choice {
  position: absolute;
  z-index: 2;
  bottom: 92px;
  width: 150px;
  padding: 18px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(98, 62, 49, 0.13);
  font-style: normal;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.choice.one { left: 13%; }
.choice.two { right: 13%; background: var(--yellow); }

.data-media { background: #e9f3ff; }

.data-scene {
  position: absolute;
  inset: 88px 62px 100px;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(44, 78, 114, 0.16);
}

.chart-grid {
  position: absolute;
  inset: 26px;
  background-image: linear-gradient(#e8ebef 1px, transparent 1px), linear-gradient(90deg, #e8ebef 1px, transparent 1px);
  background-size: 48px 48px;
}

.line {
  position: absolute;
  z-index: 2;
  height: 5px;
  border-radius: 99px;
  background: var(--blue);
  transform-origin: left center;
}

.line.l1 { top: 68%; left: 12%; width: 30%; transform: rotate(-21deg); }
.line.l2 { top: 57%; left: 39%; width: 28%; transform: rotate(15deg); }
.line.l3 { top: 63%; left: 65%; width: 26%; transform: rotate(-34deg); }

.point {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.point.p1 { top: 65%; left: 10%; }
.point.p2 { top: 50%; left: 39%; }
.point.p3 { top: 60%; left: 64%; }
.point.p4 { top: 34%; left: 88%; }

.context-section {
  display: grid;
  gap: 140px;
  padding-top: 20px;
  padding-bottom: 120px;
}

.context-row {
  display: grid;
  grid-template-columns: minmax(470px, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: 86px;
}

.context-row.reverse .context-media { order: 2; }
.context-row.reverse .context-copy { order: 1; }

.context-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 38px;
  background: #ddd;
}

.context-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.context-media > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #53555d;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.context-copy {
  max-width: 540px;
}

.context-copy h2 {
  margin-bottom: 28px;
}

.context-copy > p:last-of-type {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.region-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.region-list img {
  display: block;
  width: 28px;
  height: 28px;
}

.outcomes-section {
  padding: 150px 0 160px;
  background: var(--lavender);
}

.outcomes-heading {
  margin-bottom: 65px;
}

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

.outcome-card {
  min-height: 360px;
  padding: 35px;
  border: 1px solid rgba(21, 22, 26, 0.11);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
}

.outcome-card:nth-child(2) { background: var(--lime); }
.outcome-card:nth-child(3) { background: #fff0e7; }

.outcome-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 90px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.outcome-card h3 {
  margin-bottom: 16px;
  font-size: 29px;
}

.outcome-card p {
  color: #555760;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

.schools-section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.school-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 80px;
  padding: 78px;
  border-radius: 40px;
  background: var(--lime);
}

.school-copy h2 {
  max-width: 680px;
  margin-bottom: 27px;
}

.school-copy > p:not(.eyebrow) {
  max-width: 630px;
  color: #4c532b;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 820;
}

.school-steps {
  display: grid;
  gap: 10px;
  align-content: center;
}

.school-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 17px;
  padding: 20px;
  border: 1px solid rgba(21, 22, 26, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.school-steps article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.school-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.school-steps p {
  color: #5f653d;
  font-size: 13px;
}

.final-cta {
  padding-bottom: 80px;
}

.final-photo {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: 44px;
  background: #30333a;
}

.final-photo > img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center 42%;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 10, 14, 0.89) 0%, rgba(9, 10, 14, 0.68) 44%, rgba(9, 10, 14, 0.05) 78%);
}

.final-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 70px;
  width: min(690px, calc(100% - 140px));
  color: #fff;
  transform: translateY(-50%);
}

.final-copy .eyebrow {
  color: #b8c0ff;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 36px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
}

.primary-cta {
  background: var(--lime);
  color: var(--ink);
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

footer {
  padding: 90px 0 30px;
  background: var(--dark);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.65fr);
  gap: 60px;
  padding-bottom: 80px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-intro p {
  color: #a9abb4;
  font-size: 15px;
  line-height: 1.6;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column strong {
  margin-bottom: 6px;
  color: #7f828c;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: #d5d6dc;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.social-brand-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #747781;
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final-actions .store-cta {
  background: transparent;
}

.final-actions .store-cta:hover {
  background: transparent;
}

/* Wide desktop — use the canvas, while keeping tablet and mobile unchanged. */
@media (min-width: 1440px) {
  :root {
    --shell: min(1480px, calc(100vw - 120px));
    --wide-shell: min(1680px, calc(100vw - 120px));
  }

  .topbar {
    width: min(1680px, calc(100vw - 120px));
  }

  .hero,
  .final-cta {
    width: var(--wide-shell);
  }

  .hero-frame {
    grid-template-columns: minmax(0, 0.9fr) minmax(620px, 1.1fr);
    min-height: 780px;
    padding: 64px clamp(64px, 4.2vw, 84px);
    border-radius: 48px;
  }

  .hero-copy,
  .hero-support {
    max-width: 800px;
    padding-right: clamp(28px, 3vw, 58px);
  }

  .hero-copy {
    align-self: end;
  }

  .hero-support {
    align-self: start;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(60px, 3vw, 72px);
  }

  .hero-lead {
    max-width: 610px;
    font-size: 19px;
  }

  .hero-demo {
    width: min(100%, 820px);
  }

  .method-section > .section-shell {
    width: min(1520px, calc(100vw - 120px));
  }

  .method-heading {
    margin-bottom: 96px;
  }

  .method-row {
    grid-template-columns: minmax(380px, 0.68fr) minmax(620px, 1.32fr);
    gap: clamp(72px, 5vw, 104px);
    min-height: 520px;
  }

  .method-copy {
    max-width: 500px;
  }

  .method-visual {
    min-height: 520px;
    border-radius: 42px;
  }

  .domains-section {
    width: min(1600px, calc(100vw - 120px));
  }

  .domain-panel {
    grid-template-columns: minmax(330px, 0.7fr) minmax(580px, 1.3fr);
    gap: clamp(64px, 4.5vw, 96px);
    min-height: 650px;
    padding: clamp(56px, 4vw, 76px);
    border-radius: 46px;
  }

  .domain-media {
    min-height: 540px;
  }

  .context-section {
    width: min(1520px, calc(100vw - 120px));
  }

  .context-row {
    grid-template-columns: minmax(640px, 1.08fr) minmax(430px, 0.92fr);
    gap: clamp(72px, 5vw, 104px);
  }

  .context-media,
  .context-media img {
    min-height: 580px;
  }

  .schools-section {
    width: min(1600px, calc(100vw - 120px));
  }

  .school-frame {
    grid-template-columns: minmax(540px, 1.16fr) minmax(400px, 0.84fr);
    gap: clamp(72px, 5vw, 100px);
    padding: clamp(64px, 4.5vw, 84px);
    border-radius: 46px;
  }

  .final-photo,
  .final-photo > img {
    min-height: 660px;
    height: 660px;
  }

  .final-copy {
    left: clamp(72px, 5vw, 104px);
    width: min(700px, calc(100% - 208px));
  }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 36px, 980px);
  }

  .hero-frame {
    grid-template-areas:
      "copy"
      "support"
      "demo";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 28px;
    padding: 72px 54px;
  }

  .hero-copy,
  .hero-support,
  .hero-demo {
    min-width: 0;
  }

  .hero-copy,
  .hero-support {
    max-width: 790px;
    padding-right: 0;
  }

  .hero-support .hero-lead {
    margin-top: 0;
  }

  .hero-demo {
    width: min(100%, 600px);
    justify-self: center;
  }

  .work-index-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-index-card {
    min-height: 158px;
  }

  .directing-stage {
    min-height: 480px;
  }

  .method-row,
  .context-row {
    gap: 55px;
  }

  .method-row {
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  }

  .visual-result {
    grid-template-columns: 150px 35px 220px;
  }

  .visual-sky {
    width: 210px;
    height: 270px;
  }

  .domain-panel {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .domain-copy {
    max-width: 760px;
  }

  .context-row {
    grid-template-columns: 1fr 0.9fr;
  }

  .school-frame {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .site-header {
    padding-top: 8px;
  }

  .topbar {
    width: calc(100% - 18px);
    min-height: 57px;
    padding: 7px 8px 7px 13px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 5px;
  }

  .language-switch {
    display: flex;
    padding: 3px;
  }

  .language-button {
    min-width: 31px;
    height: 32px;
    padding: 0 6px;
  }

  .header-login {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-frame {
    gap: 30px;
    min-height: auto;
    padding: 44px 24px 35px;
    border-radius: 30px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(40px, 9vw, 54px);
    line-height: 1.12;
  }

  .hero-lead {
    max-width: 580px;
    color: #41434b;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-choices {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .role-choice {
    min-height: 84px;
  }

  .hero-demo {
    width: 100%;
  }

  .work-index {
    padding-top: 62px;
    padding-bottom: 74px;
  }

  .work-index-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }

  .work-index-heading > p {
    max-width: 620px;
    padding-bottom: 0;
  }

  .work-index-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, 31vw);
    gap: 9px;
    padding: 2px 1px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .work-index-rail::-webkit-scrollbar {
    display: none;
  }

  .work-index-card {
    min-height: 164px;
    scroll-snap-align: start;
  }

  .demo-shell {
    border-radius: 27px;
    transform: none;
  }

  .hero-demo:hover .demo-shell {
    transform: none;
  }

  .directing-stage {
    min-height: 440px;
  }

  .demo-console {
    padding-top: 14px;
  }

  .console-copy strong {
    max-width: 310px;
  }

  .proof {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 100px;
    padding: 22px 26px;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-section,
  .domains-section,
  .outcomes-section {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  .method-section {
    border-radius: 32px 32px 0 0;
  }

  .method-heading {
    margin-bottom: 60px;
  }

  .method-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .section-heading h2,
  .context-copy h2,
  .school-copy h2,
  .final-copy h2 {
    font-size: clamp(39px, 10vw, 56px);
  }

  .method-list {
    gap: 76px;
  }

  .method-row,
  .method-row.reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .method-row.reverse .method-copy,
  .method-row.reverse .method-visual {
    order: initial;
  }

  .method-copy {
    max-width: 650px;
  }

  .method-visual {
    min-height: 440px;
  }

  .domains-heading {
    margin-bottom: 42px;
  }

  .domain-panel {
    min-height: 0;
    padding: 28px;
    border-radius: 30px;
  }

  .domain-media {
    min-height: 480px;
  }

  .context-section {
    gap: 90px;
    padding-top: 20px;
    padding-bottom: 80px;
  }

  .context-row,
  .context-row.reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .context-row.reverse .context-media,
  .context-row.reverse .context-copy {
    order: initial;
  }

  .context-media,
  .context-media img {
    min-height: 430px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .outcome-card {
    min-height: 280px;
  }

  .outcome-card > span {
    margin-bottom: 60px;
  }

  .schools-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .school-frame {
    gap: 52px;
    padding: 50px 27px;
    border-radius: 30px;
  }

  .final-photo,
  .final-photo > img {
    min-height: 610px;
    height: 610px;
  }

  .final-photo {
    border-radius: 30px;
  }

  .final-photo > img {
    object-position: 42% center;
  }

  .final-overlay {
    background: linear-gradient(0deg, rgba(9, 10, 14, 0.92) 0%, rgba(9, 10, 14, 0.6) 58%, rgba(9, 10, 14, 0.1) 100%);
  }

  .final-copy {
    top: auto;
    bottom: 40px;
    left: 26px;
    width: calc(100% - 52px);
    transform: none;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-intro {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .hero-frame {
    gap: 24px;
    padding-top: 38px;
    padding-inline: 17px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(36px, 9.8vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.04em;
  }

  .hero-lead {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  html[lang="en"] .hero-lead {
    font-size: 16px;
  }

  .hero-choices {
    margin-top: 22px;
  }

  .work-index {
    padding-top: 52px;
    padding-bottom: 62px;
  }

  .work-index-heading h2 {
    font-size: 38px;
  }

  .work-index-heading > p {
    font-size: 14px;
  }

  .work-index-rail {
    grid-auto-columns: 164px;
  }

  .work-index-card {
    min-height: 156px;
    padding: 17px;
    border-radius: 22px;
  }

  .work-index-card > span {
    width: 40px;
    height: 40px;
  }

  .role-choice {
    grid-template-columns: 38px 1fr auto;
    padding: 14px;
    border-radius: 18px;
  }

  .choice-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .demo-shell {
    padding: 10px;
  }

  .demo-topline {
    align-items: flex-start;
    gap: 8px;
  }

  .demo-step {
    text-align: right;
  }

  .loop-switcher {
    gap: 2px;
  }

  .loop-switcher button {
    gap: 4px;
    min-height: 36px;
    padding-inline: 3px;
    font-size: 9px;
  }

  .loop-switcher button b {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }

  .directing-stage {
    min-height: 420px;
    border-radius: 20px;
  }

  .scene-switcher {
    top: 11px;
    right: 11px;
    left: 11px;
    justify-content: space-between;
  }

  .scene-switcher button {
    flex: 1;
    justify-content: center;
    padding-inline: 5px;
  }

  .scene-switcher button i {
    display: none;
  }

  .sky-moon {
    top: 74px;
    right: 34px;
    transform: scale(0.82);
  }

  .drop-tower {
    top: 62px;
    transform: translateX(-50%) scale(0.9);
  }

  .word-machine {
    right: 20px;
    bottom: 75px;
    transform-origin: bottom right;
  }

  .route-one { left: 28px; width: 132px; }
  .route-two { left: 131px; }
  .route-three { left: 235px; width: 150px; }
  .route-corner { left: 151px; }

  .mini-machine {
    left: 42px;
  }

  @keyframes drive-route {
    0%, 10% { transform: translate(0, 0) rotate(0); }
    38% { transform: translate(108px, 0) rotate(0); }
    55% { transform: translate(141px, 55px) rotate(55deg); }
    73% { transform: translate(183px, 118px) rotate(0); }
    100% { transform: translate(270px, 118px) rotate(0); }
  }

  .intent-card {
    right: 12px;
    bottom: 13px;
    left: 88px;
    min-height: 70px;
    padding: 12px 13px;
  }

  .intent-card strong {
    font-size: 12px;
  }

  .loop-character {
    bottom: 19px;
    left: 18px;
    transform-origin: bottom left;
  }

  .hero-demo[data-loop-step="direct"] .character-yellow,
  .hero-demo[data-loop-step="read"] .character-purple,
  .hero-demo[data-loop-step="evaluate"] .character-green {
    transform: translateY(0) scale(0.82);
  }

  .hero-demo[data-loop-step="redirect"] .character-yellow { left: 17px; }
  .hero-demo[data-loop-step="redirect"] .character-purple { left: 58px; }

  .hero-demo[data-loop-step="accumulate"] .character-yellow { left: 12px; }
  .hero-demo[data-loop-step="accumulate"] .character-purple { left: 51px; }
  .hero-demo[data-loop-step="accumulate"] .character-green { left: 91px; }

  .character-caption {
    bottom: 83px;
    left: 14px;
    max-width: 150px;
  }

  .demo-console {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 3px 2px;
  }

  .console-copy strong {
    max-width: none;
  }

  .console-actions {
    width: 100%;
  }

  .console-main {
    flex: 1;
  }

  .saved-project {
    min-width: 180px;
  }

  .proof-item strong {
    font-size: 33px;
  }

  .method-copy p,
  .domains-heading > p:last-child,
  .context-copy > p:last-of-type,
  .school-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .method-visual {
    min-height: 370px;
    border-radius: 26px;
  }

  .visual-result {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 28px;
  }

  .visual-prompt {
    justify-self: start;
  }

  .visual-arrow {
    transform: rotate(90deg);
  }

  .visual-sky {
    width: 190px;
    height: 205px;
  }

  .question-stage {
    inset: 30px 25px 110px;
  }

  .question-bubble {
    right: 18px;
    bottom: 78px;
  }

  .answer-chips {
    bottom: 24px;
    left: 18px;
  }

  .visual-trace {
    padding: 42px 18px;
  }

  .project-card {
    width: 82%;
    padding: 17px;
  }

  .project-card.p1 { top: 45px; left: 8%; }
  .project-card.p2 { top: 145px; left: 13%; }
  .project-card.p3 { top: 245px; left: 7%; }

  .domain-tabs {
    margin-right: -12px;
    padding-right: 12px;
  }

  .domain-panel {
    gap: 34px;
    padding: 25px 17px 17px;
  }

  .domain-copy {
    padding: 5px 8px;
  }

  .domain-copy h3 {
    font-size: 40px;
  }

  .domain-copy > p {
    font-size: 16px;
  }

  .domain-media {
    min-height: 410px;
    border-radius: 22px;
  }

  .device-board {
    width: 220px;
    height: 160px;
  }

  .device-light {
    right: 25px;
  }

  .sensor-wave {
    left: 15px;
  }

  .sensor-wave.w2 {
    left: -5px;
  }

  .app-scene {
    inset: 75px 18px 82px;
    grid-template-columns: 70px 1fr;
  }

  .choice {
    width: 120px;
  }

  .choice.one { left: 7%; }
  .choice.two { right: 7%; }

  .data-scene {
    inset: 75px 22px 90px;
  }

  .context-media,
  .context-media img {
    min-height: 360px;
  }

  .outcome-card {
    padding: 28px;
  }

  .school-frame {
    padding: 42px 19px;
  }

  .school-steps article {
    grid-template-columns: 42px 1fr;
    padding: 15px;
  }

  .school-steps article > span {
    width: 42px;
    height: 42px;
  }

  .final-cta {
    padding-bottom: 70px;
  }

  .final-photo,
  .final-photo > img {
    min-height: 580px;
    height: 580px;
  }

  .final-copy h2 {
    font-size: 40px;
  }

  .final-actions {
    display: grid;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  footer {
    padding-top: 65px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px 25px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .product-demo-shell {
    padding: 8px;
    border-radius: 22px;
  }

  .product-appbar {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 48px;
    padding-inline: 7px;
  }

  .product-mode {
    display: none;
  }

  .product-project-meta strong {
    font-size: 10px;
  }

  .product-credit {
    padding-inline: 7px;
  }

  .product-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-pane {
    border-right: 0;
    border-bottom: 1px solid #dfe1e6;
  }

  .feedback-tabs {
    height: 35px;
  }

  .guide-card {
    grid-template-columns: 46px minmax(0, 1fr);
    margin: 8px;
  }

  .guide-media {
    width: 46px;
    height: 46px;
  }

  .feedback-scroll {
    grid-template-columns: 1fr 1fr;
    max-height: 205px;
    padding: 0 8px 8px;
  }

  .feedback-understanding {
    grid-column: 1 / -1;
  }

  .feedback-card {
    padding: 9px;
  }

  .feedback-card p,
  .feedback-card > strong {
    font-size: 8px;
  }

  .runtime-canvas {
    min-height: 270px;
  }

  .sim-board {
    left: 28px;
    transform: scale(0.88);
    transform-origin: bottom left;
  }

  .sim-led {
    right: 31px;
  }

  .sim-wire {
    right: 58px;
  }

  .product-commandbar {
    grid-template-columns: 32px minmax(0, 1fr) 78px;
    gap: 5px;
    padding: 7px;
  }

  .product-commandbar .console-main {
    min-width: 0;
    padding-inline: 7px;
  }

  .product-commandbar .console-main b {
    display: none;
  }

  .product-prompt {
    padding-inline: 8px;
  }

  .product-prompt strong {
    font-size: 8px;
  }

  .product-demo-shell > .scene-switcher {
    right: auto;
    left: auto;
  }

  .product-demo-shell > .loop-switcher button {
    gap: 3px;
    font-size: 8px;
  }

  .method-visual.product-story {
    min-height: 540px;
    padding: 11px;
    border-radius: 25px;
  }

  .product-story .story-shell {
    min-height: 516px;
    border-radius: 20px;
  }

  .story-appbar,
  .course-story-head {
    min-height: 54px;
    padding-inline: 10px;
  }

  .story-modes span {
    min-width: 40px;
    padding-inline: 8px;
  }

  .story-create .create-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(218px, 1fr) auto;
  }

  .create-moon {
    top: 25%;
    right: 15%;
    width: 76px;
  }

  .vibeblock-panel {
    padding: 10px;
    border-top: 1px solid var(--story-line);
    border-left: 0;
  }

  .vibeblock-card {
    margin-top: 7px;
  }

  .vibeblock-card-head {
    padding-block: 8px;
  }

  .vibeblock-card > p {
    padding-top: 8px;
  }

  .vibeblock-values {
    padding-block: 7px 9px;
  }

  .story-promptbar {
    min-height: 58px;
    padding: 8px 9px;
  }

  .machine-stage {
    min-height: 460px;
  }

  .machine-track {
    top: 50px;
    left: 2%;
    width: 88%;
    height: 222px;
  }

  .story-machine {
    top: 172px;
    right: 8%;
  }

  .path-error {
    top: 112px;
    right: 3%;
  }

  .story-ai-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 14px;
  }

  .story-ai-card > strong {
    font-size: 12px;
  }

  .inspect-content {
    padding: 15px 10px;
  }

  .compare-table {
    padding-inline: 9px;
  }

  .compare-table > div {
    grid-template-columns: 0.75fr 1fr 1fr;
    gap: 5px;
  }

  .course-story-head {
    min-height: 62px;
  }

  .course-progress-card {
    margin-inline: 10px;
  }

  .course-lessons {
    padding: 10px 9px 12px 21px;
  }

  .course-rail {
    left: 40px;
  }

  .course-lesson {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 69px;
    padding-right: 9px;
  }

  .course-lesson strong {
    font-size: 9px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 22px;
  }

  .store-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-store-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-store-link {
    min-width: 0;
    min-height: 56px;
    gap: 8px;
    padding: 9px 9px 9px 12px;
    border-radius: 14px;
  }

  .hero-store-link b {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .store-cta {
    min-width: 0;
    width: 100%;
    height: 50px;
    padding-inline: 0;
  }

  .store-cta .store-badge-apple {
    height: 45px;
  }

  .store-cta .store-badge-google {
    width: 100%;
    height: auto;
  }

  .hero-primary {
    width: 100%;
  }

  .hero-secondary {
    justify-content: center;
  }
}

@media (max-width: 1120px) {
  .character-edge-yellow { left: -10px; width: 132px; }
  .character-edge-purple { right: -7px; width: 124px; }
  .character-edge-green { left: -20px; width: 152px; }
  .character-edge-pink { width: 88px; }
}

@media (max-width: 820px) {
  .character-edge-yellow { bottom: 40px; left: -6px; width: 118px; }
  .character-edge-purple { top: 60px; right: -4px; width: 110px; }
  .character-edge-green { bottom: 48px; left: -14px; width: 136px; }
  .character-edge-pink { right: 3px; width: 80px; }

}

@media (max-width: 560px) {
  .character-edge-yellow { bottom: 38px; left: -4px; width: 108px; }
  .character-edge-purple { top: 58px; right: -2px; width: 100px; }
  .character-edge-green { bottom: 42px; left: -10px; width: 126px; }
  .character-edge-pink { right: 4px; bottom: 20px; width: 72px; }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
