/* MIKUTA AI scroll world and shared interaction layer */
:root {
  --lp-world-bg: #07111f;
  --lp-world-panel: rgba(7, 17, 31, .84);
  --lp-world-text: #f7fafc;
  --lp-world-muted: #b7c5d8;
  --lp-world-accent: #60a5fa;
  --lp-world-line: rgba(148, 178, 216, .3);
  --lp-ui-ease: cubic-bezier(.23, 1, .32, 1);
}

body.lp-world-enabled {
  --radius: 8px;
  --radius-lg: 8px;
  --r: 8px;
  --trans: all 180ms var(--lp-ui-ease);
}

.lp-site-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1400;
  height: 2px;
  pointer-events: none;
  background: rgba(148, 163, 184, .18);
}

.lp-site-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: #2563eb;
  will-change: transform;
}

.world-experience {
  position: relative;
  min-height: 0;
  overflow: clip;
  color: var(--lp-world-text);
  background: var(--lp-world-bg);
  isolation: isolate;
}

.world-experience.world-live {
  height: 500svh;
  min-height: 3200px;
}

.world-sticky {
  position: sticky;
  top: 0;
  display: none;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--lp-world-bg);
}

.world-experience.world-live .world-sticky { display: block; }
.world-experience.world-live .world-fallback { display: none; }

.world-stage,
.world-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-stage canvas {
  display: block;
  outline: none;
}

.world-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: max(40px, calc((100vw - 1120px) / 2 + 24px));
  width: min(470px, 38vw);
  padding-left: 24px;
  border-left: 2px solid var(--lp-world-accent);
  transform: translateY(-48%);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .62);
}

.world-copy__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--lp-world-accent);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.world-copy__num {
  min-width: 44px;
  padding-right: 10px;
  border-right: 1px solid currentColor;
}

.world-copy__title {
  max-width: 12em;
  margin: 0 0 18px;
  color: var(--lp-world-text);
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.world-copy__body {
  max-width: 43em;
  margin: 0;
  color: var(--lp-world-muted);
  font-size: .98rem;
  line-height: 1.9;
}

.world-copy__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.world-copy__tags li {
  padding: 5px 10px;
  border: 1px solid var(--lp-world-line);
  border-radius: 4px;
  background: rgba(7, 17, 31, .52);
  color: #d9e5f4;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
}

.world-copy__actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.world-copy.is-final .world-copy__actions { display: flex; }

.world-copy__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #60a5fa;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms var(--lp-ui-ease), background-color 180ms ease;
}

.world-copy__link--secondary {
  background: rgba(7, 17, 31, .72);
  color: #dbeafe;
}

.world-copy__link:active { transform: scale(.97); }
.world-copy__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.world-route {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: max(28px, calc((100vw - 1260px) / 2));
  display: grid;
  gap: 9px;
  width: 178px;
  transform: translateY(-50%);
}

.world-route__button {
  appearance: none;
  display: grid;
  grid-template-columns: 28px 1fr 8px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(7, 17, 31, .46);
  color: #8497b2;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms var(--lp-ui-ease), color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.world-route__button span {
  color: currentColor;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .66rem;
  font-weight: 800;
}

.world-route__button strong {
  overflow: hidden;
  font-size: .72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-route__button i {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.world-route__button.is-active {
  border-color: var(--lp-world-accent);
  background: rgba(8, 32, 58, .84);
  color: #e9f4ff;
}

.world-route__button.is-active i {
  border-color: var(--lp-world-accent);
  background: var(--lp-world-accent);
  box-shadow: 0 0 10px var(--lp-world-accent);
}

.world-route__button:active { transform: scale(.97); }
.world-route__button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.world-progress {
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 18%;
  width: 2px;
  height: 64%;
  background: rgba(148, 178, 216, .18);
}

.world-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: var(--lp-world-accent);
  will-change: transform;
}

.world-scroll-label {
  position: absolute;
  z-index: 5;
  right: 17px;
  bottom: 24px;
  color: #71849f;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.world-fallback {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
  color: #fff;
}

.world-fallback > p {
  margin-bottom: 10px;
  color: #60a5fa;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.world-fallback h2 {
  margin-bottom: 36px;
  font-size: 2.4rem;
  line-height: 1.3;
}

.world-fallback ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.world-fallback li {
  padding: 18px;
  border-top: 2px solid #60a5fa;
  background: #0d1b2c;
}

.world-fallback strong { display: block; margin-bottom: 8px; }
.world-fallback span { color: #b7c5d8; font-size: .82rem; }

/* Shared LP UI: the 3D language continues after the world section. */
body.lp-world-enabled .section__label,
body.lp-world-enabled .sec__label {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

body.lp-world-enabled .problem-card,
body.lp-world-enabled .concept-card,
body.lp-world-enabled .curriculum-col,
body.lp-world-enabled .pricing-card,
body.lp-world-enabled .link-card,
body.lp-world-enabled .pain-card,
body.lp-world-enabled .step-card,
body.lp-world-enabled .price-card,
body.lp-world-enabled .contact-card,
body.lp-world-enabled .instr-photo {
  border-radius: 8px;
}

body.lp-world-enabled .btn,
body.lp-world-enabled .btn-price,
body.lp-world-enabled .btn-submit,
body.lp-world-enabled .hd__cta,
body.lp-world-enabled .header__cta {
  transition: transform 140ms var(--lp-ui-ease), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.lp-world-enabled .btn:active,
body.lp-world-enabled .btn-price:active,
body.lp-world-enabled .btn-submit:active,
body.lp-world-enabled .hd__cta:active,
body.lp-world-enabled .header__cta:active { transform: scale(.97); }

body.lp-world-enabled :where(a, button):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .world-route__button:hover { color: #dbeafe; border-color: rgba(96, 165, 250, .45); }
  .world-copy__link:hover { background: #1d4ed8; }
  .world-copy__link--secondary:hover { background: #102a46; }
}

@media (max-width: 900px) {
  .world-copy { width: min(440px, 52vw); }
  .world-copy__title { font-size: 2.6rem; }
  .world-route { right: 18px; width: 150px; }
  .world-progress, .world-scroll-label { display: none; }
}

@media (max-width: 700px) {
  .world-experience.world-live {
    height: 430svh;
    min-height: 2500px;
  }

  .world-sticky { min-height: 560px; }

  .world-copy {
    top: auto;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    width: auto;
    padding: 14px 14px 14px 16px;
    border-top: 1px solid var(--lp-world-accent);
    border-left: 0;
    background: var(--lp-world-panel);
    transform: none;
    text-shadow: none;
  }

  .world-copy__meta { margin-bottom: 8px; font-size: .62rem; }
  .world-copy__title { max-width: none; margin-bottom: 8px; font-size: 2rem; line-height: 1.2; }
  .world-copy__body { font-size: .82rem; line-height: 1.72; }
  .world-copy__tags { gap: 5px; margin-top: 11px; }
  .world-copy__tags li { padding: 3px 7px; font-size: .58rem; }
  .world-copy__actions { gap: 7px; margin-top: 12px; }
  .world-copy__link { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 9px; font-size: .72rem; }

  .world-route {
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    transform: none;
  }

  .world-route__button {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-width: 0;
    min-height: 36px;
    padding: 5px 2px;
    text-align: center;
  }

  .world-route__button strong,
  .world-route__button i { display: none; }
  .world-route__button span { font-size: .62rem; }

  .world-scroll-label { display: none; }

  .world-fallback { padding: 64px 20px; }
  .world-fallback h2 { font-size: 1.8rem; }
  .world-fallback ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .world-route__button,
  .world-copy__link,
  body.lp-world-enabled .btn,
  body.lp-world-enabled .btn-price,
  body.lp-world-enabled .btn-submit { transition: none; }
}
