:root {
  color-scheme: dark;
  --bg: #0c0a12;
  --surface: #13101d;
  --line: #292438;
  --text: #faf8ff;
  --muted: #b3adc1;
  --accent: #c9afff;
  --green: #bafaea;
  --wrap: min(1232px, calc(100% - 100px));
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -.064em; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 1rem; top: 1rem; padding: .7rem; background: var(--accent); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: #0c0a12ee; backdrop-filter: blur(16px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.wordmark { font-size: 1.02rem; font-weight: 850; letter-spacing: -.055em; }
.wordmark span { color: var(--accent); }
.brand-divider { width: 1px; height: 18px; background: #40374c; }
.academy { color: #dbd2e7; font: 600 .77rem/1 ui-monospace, monospace; letter-spacing: .09em; }
nav { display: flex; gap: clamp(1.1rem, 3vw, 2.7rem); }
nav a, footer a:not(.brand) { font-size: .91rem; color: var(--muted); transition: color .2s; }
nav a:hover, footer a:hover { color: var(--text); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .65rem 1.14rem; border: 1px solid transparent; border-radius: 8px; font-size: .93rem; line-height: 1.15; font-weight: 750; text-align: center; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #181026; background: var(--accent); }
.button-primary:hover { background: #e1d1ff; }
.button-outline, .button-small { color: var(--text); background: #ffffff05; border-color: #51425e; }
.button-outline:hover, .button-small:hover { background: #c9afff20; border-color: var(--accent); }
.button-small { min-height: 42px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.7rem, 8vw, 7rem) clamp(3.25rem, 6vw, 5.25rem); }
.hero-copy { padding-bottom: 2.5rem; }
.eyebrow { display: flex; align-items: center; gap: .64rem; margin: 0 0 1.25rem; color: var(--accent); font: 650 .82rem/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .11em; }
.eyebrow > span { display: inline-block; width: 15px; height: 1px; background: currentColor; }
h1 { max-width: 100%; font-size: clamp(3.1rem, 5.15vw, 5.2rem); line-height: .995; font-weight: 800; }
h1 em { display: block; }
.intro { max-width: 46ch; margin-top: 1.55rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.visual { min-width: 0; }
.stage {
  --scene-color: #9670fc;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(345px, 35vw, 495px);
  border: 1px solid #493557;
  border-radius: 17px;
  background: radial-gradient(ellipse at 52% 49%, color-mix(in srgb, var(--scene-color) 31%, #191229), transparent 59%),
              radial-gradient(ellipse at 81% 16%, #291844, transparent 60%), #12101f;
  transition: background-color .25s;
}
.scene-grid { position: absolute; inset: 0; background-image: linear-gradient(#c9abff15 1px, transparent 1px), linear-gradient(90deg, #c9abff15 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse, #000 15%, transparent 83%); }
.scene-orbit { position: absolute; top: 49%; left: 50%; width: 80%; height: 63%; translate: -50% -50%; rotate: -21deg; border: 1px solid #d4b5ff26; border-radius: 50%; pointer-events: none; }
.orbit-two { width: 70%; height: 71%; rotate: 26deg; }
.scene-fallback { position: absolute; inset: 10%; display: grid; place-items: center; pointer-events: none; will-change: transform; }
.scene-fallback i { grid-area: 1/1; display: block; width: 54%; aspect-ratio: 1; border: clamp(18px, 4vw, 53px) solid color-mix(in srgb, var(--scene-color) 72%, #e0bcff); border-radius: 46%; transform: rotate(31deg) skew(-23deg, 4deg) translate(-14%, -12%); box-shadow: inset 0 0 18px #fbdaff, 5px 11px 0 #4a238e, 0 0 38px #ae74f881; }
.scene-fallback i + i { transform: rotate(-25deg) skew(15deg, -7deg) translate(13%, 19%); border-color: color-mix(in srgb, var(--scene-color) 52%, #545ddc); box-shadow: inset 0 0 17px #d2c6ff, 5px 12px 0 #29163c, 0 0 22px #9864ed91; }
.stage.rendered .scene-fallback { display: none; }
#fusion-scene { display: block; width: 100%; height: 100%; position: relative; touch-action: pan-y; cursor: grab; }
#fusion-scene:active { cursor: grabbing; }
.stage-top, .stage-bottom { position: absolute; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; gap: .7rem; pointer-events: none; }
.stage-top { top: 16px; }
.stage-bottom { bottom: 14px; }
.stage-top > span, .scene-label { color: #e3d8f3; font: 600 .78rem/1.2 ui-monospace, monospace; letter-spacing: .07em; }
.stage-top > span { display: inline-flex; gap: 9px; align-items: center; }
.stage-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px #adffdd75; }
.scene-label [data-drag-label] { color: #c2b3d2; letter-spacing: 0; }
.stage-top button, .rotate-buttons button { border: 1px solid #655273; border-radius: 6px; background: #171123e8; color: #eee4f9; pointer-events: auto; }
.stage-top button { min-height: 35px; padding-inline: .62rem; font-size: .82rem; }
.rotate-buttons { display: flex; gap: 6px; }
.rotate-buttons button { width: 39px; height: 37px; font-size: 1.15rem; }
.stage button:hover:not(:disabled) { background: #3b2b50; }
.stage button:disabled { opacity: .6; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #100e19; }
.stage-step { min-height: 41px; border: 1px solid transparent; border-radius: 6px; padding: .35rem; color: #c3b9d0; background: transparent; font-size: .87rem; font-weight: 700; }
.stage-step.active { border-color: #594670; background: #29203a; color: #f8efff; }
.stage-step:hover { color: #fff; }
.scene-note { margin-top: .73rem; min-height: 1.45em; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.tool-strip { border-block: 1px solid var(--line); background: #100d19; }
.tool-strip-inner { display: flex; align-items: center; min-height: 66px; gap: 2rem; }
.tool-strip-inner > span { color: var(--muted); font-size: .85rem; }
.tool-strip ul { display: flex; flex: 1; justify-content: space-around; flex-wrap: wrap; padding: 0; margin: 0; gap: .75rem 1.4rem; list-style: none; color: #d9cfe9; font: 650 .82rem ui-monospace, monospace; letter-spacing: .09em; }

.section { padding-block: clamp(3.5rem, 7.5vw, 7rem); }
.comparison-section, .program-grid { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.section-intro h2, .membership h2 { max-width: 13ch; font-size: clamp(2.7rem, 4.55vw, 4.65rem); line-height: .99; font-weight: 780; }
.section-intro h2 + p, .membership h2 + p { color: var(--muted); margin-top: 1.2rem; line-height: 1.65; max-width: 45ch; }
.demo-info { display: inline-block; color: #cdc0db; margin-top: 1.4rem; font-size: .88rem; }

.comparison { --split: 58%; min-width: 0; overflow: hidden; border: 1px solid #453655; border-radius: 13px; background: #171222; box-shadow: 0 21px 45px #0004; }
.browser-bar, .comparison-control { display: flex; min-height: 44px; align-items: center; gap: .8rem; padding: .55rem 1rem; color: #cec4db; font-size: .84rem; }
.browser-bar > :last-child { margin-left: auto; font: .72rem ui-monospace, monospace; letter-spacing: .05em; }
.browser-dots { display: inline-flex; gap: 4px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9f89bc; }
.comparison-display { position: relative; height: clamp(265px, 34vw, 405px); overflow: hidden; border-block: 1px solid #453655; }
.demo-before, .demo-after { position: absolute; inset: 0; padding: clamp(.9rem, 3vw, 2rem); }
.demo-before { color: #292633; background: #e1dce5; text-align: center; font-family: Georgia, serif; }
.demo-before div { font-size: .8rem; padding: .75rem; color: #fff; background: #473362; font-weight: 700; }
.demo-before > span:not(.demo-old-button) { display: block; color: #49395a; font-size: .77rem; padding: .76rem 0; }
.demo-before strong { display: block; font-size: clamp(1.1rem, 3vw, 1.9rem); }
.demo-before p { margin: .6rem auto; max-width: 34ch; font-size: .88rem; }
.demo-old-button { display: inline-block; padding: .3rem .6rem; border: 1px solid #6f6480; font-size: .78rem; }
.demo-after {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  color: #f5efdb;
  background-image: linear-gradient(90deg, #111d17e5, #0b171863 62%, #101d18a8), url("tisa.webp"), linear-gradient(120deg, #2c4538, #19201b, #5c4529);
  background-size: cover;
  background-position: center;
}
.demo-after-nav { display: flex; align-items: center; justify-content: space-between; font: .79rem ui-monospace, monospace; letter-spacing: .11em; }
.demo-after-nav > span:first-child { font-size: .98rem; font-weight: 800; }
.demo-after-copy { position: absolute; left: clamp(1.1rem, 5vw, 4rem); right: 1rem; bottom: 17%; }
.demo-after-copy > span:first-child { display: block; font: .7rem ui-monospace, monospace; letter-spacing: .12em; }
.demo-after-copy strong { display: block; max-width: 9ch; margin-top: .3rem; font: 500 clamp(2.33rem, 5vw, 4.6rem)/.93 Georgia, serif; letter-spacing: -.055em; }
.demo-new-button { display: inline-block; margin-top: 1rem; padding: .46rem .62rem; font-size: .78rem; background: #e6d7a4; color: #1c2a1f; border-radius: 3px; font-weight: 800; }
.comparison-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #dcc7ff; translate: -50% 0; }
.comparison-line span { position: absolute; top: 52%; left: 50%; translate: -50% -50%; width: 40px; height: 40px; display: grid; place-items: center; color: #160e26; background: #dcc7ff; border-radius: 50%; font-weight: 850; box-shadow: 0 2px 12px #0006; }
.comparison[data-edge] .comparison-line span { opacity: 0; }
.comparison-tag { position: absolute; bottom: .8rem; padding: .35rem .62rem; border-radius: 4px; background: #100b19e8; color: #fff; font-size: .73rem; font-weight: 700; }
.tag-after { left: .75rem; }
.tag-before { right: .75rem; }
.comparison[data-edge="before"] .tag-after, .comparison[data-edge="after"] .tag-before { display: none; }
.comparison-control { min-height: 54px; }
.comparison-control input { flex: 1; min-width: 30px; min-height: 30px; accent-color: var(--accent); cursor: ew-resize; }
.comparison-control output { text-align: right; width: 3ch; font-variant-numeric: tabular-nums; }

.program-section { background: #110e19; border-block: 1px solid var(--line); }
.program-grid { align-items: start; }
.lessons { border-top: 1px solid #3b3249; }
.lessons details { border-bottom: 1px solid #3b3249; }
.lessons summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; min-height: 69px; padding: .7rem .3rem; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 750; }
.lessons summary::-webkit-details-marker { display: none; }
.lessons summary span { color: var(--accent); font: .78rem ui-monospace, monospace; }
.lessons summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 450; }
.lessons details[open] summary::after { content: "−"; }
.lessons details p { color: var(--muted); padding: 0 2rem 1.2rem; line-height: 1.65; }
.lessons summary:hover { color: var(--accent); }
.membership { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.55rem, 7vw, 5rem); border: 1px solid #4e3a65; border-radius: 17px; background: radial-gradient(ellipse at 85% 130%, #382851, transparent 68%), #1a1227; }
.membership-action { display: grid; gap: .85rem; }
.price { display: flex; align-items: baseline; gap: .5rem; color: var(--muted); }
.price strong { font-size: 1.2rem; color: #f2e7ff; }
dialog { width: min(95% - 1rem, 430px); border: 1px solid #594673; border-radius: 12px; padding: 1.4rem; background: #1b1428; color: var(--text); }
dialog::backdrop { background: #08060cce; }
dialog h2 { font-size: 1.9rem; }
dialog p { margin-block: .95rem; line-height: 1.55; color: var(--muted); }
.close-dialog { float: right; border: 1px solid #67517b; border-radius: 6px; background: transparent; color: white; width: 37px; height: 37px; font-size: 1.3rem; }

footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-block: 1.5rem; }
.footer-inner .brand { margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .7s both; }
  .visual { animation: arrive .85s .12s both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  :root { --wrap: calc(100% - 60px); }
  .hero { gap: 1.75rem; }
  h1 { font-size: clamp(2.9rem, 7vw, 4.5rem); }
  .stage { height: clamp(305px, 43vw, 405px); }
  .comparison-section, .program-grid { gap: 2rem; }
}
@media (max-width: 690px) {
  :root { --wrap: calc(100% - 34px); }
  html { scroll-padding-top: 75px; }
  .nav { min-height: 61px; gap: .6rem; }
  .nav nav { display: none; }
  .hero, .comparison-section, .program-grid, .membership { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; padding-bottom: 2rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.5rem, 10.1vw, 4.2rem); }
  .actions { margin-top: 1.15rem; }
  .actions .button { padding-inline: .79rem; }
  .stage { height: clamp(275px, 85vw, 415px); }
  .tool-strip-inner { align-items: flex-start; flex-direction: column; gap: .65rem; padding-block: .95rem; }
  .tool-strip ul { justify-content: flex-start; }
  .membership { gap: 1.3rem; }
  .membership-action { justify-items: start; }
}
@media (max-width: 360px) {
  .brand { gap: .38rem; }
  .academy { font-size: .67rem; }
  .wordmark { font-size: .9rem; }
  .button-small { padding-inline: .6rem; }
  .scene-label [data-drag-label] { display: none; }
}
.comparison-display { cursor: ew-resize; touch-action: pan-y; }
.sample-lesson { margin-top: 1.05rem; }
.sample-lesson summary { width: fit-content; cursor: pointer; color: var(--accent); font-size: .93rem; }
.sample-lesson ol { padding-left: 1.2rem; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.sample-lesson li + li { margin-top: .55rem; }

.brand-icon { display: block; border-radius: 8px; object-fit: cover; background: #20172c; }
.membership-login { font-size: .87rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.membership-questions { max-width: 740px; margin: 1.75rem auto 0; }
.membership-questions details { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.membership-questions summary { font-weight: 700; cursor: pointer; }
.membership-questions p { color: var(--muted); line-height: 1.6; margin-top: .55rem; }
@media (max-width: 360px) { .brand-icon { width: 27px; height: 27px; } }

.vsl-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.vsl-section video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #100d18; border: 1px solid var(--line); border-radius: 13px; }
@media (max-width: 690px) {
  .vsl-section { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; gap: 1rem; }
  .stage-top button, .rotate-buttons button, .stage-step { min-height: 44px; }
  .rotate-buttons button { min-width: 44px; }
}
