/* /introduction only. Everything is visible without JS; html.ix (set by intro.js) enables entrance animations. */
.intro-page main { overflow-x: clip; }
.intro-page main [hidden] { display: none; }
.ix-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, #6d4aff, #d66bff, #ff9d6b); }
.ix-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* hero */
.ix-hero { padding: 112px 0 44px;text-align: center; }
.ix-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(42px, 8vw, 92px); line-height: 1.02; letter-spacing: -.05em; }
.ix-word { display: inline-block; animation: ix-word .9s cubic-bezier(.2, .8, .2, 1) both; }
.ix-word:nth-child(2) { animation-delay: .09s; } .ix-word:nth-child(3) { animation-delay: .22s; }
.ix-word:nth-child(4) { animation-delay: .31s; } .ix-word:nth-child(5) { animation-delay: .46s; } .ix-word:nth-child(6) { animation-delay: .55s; }
.ix-grad { padding: 0 .03em; background: linear-gradient(100deg, #6d4aff, #c253e8, #f0825a, #6d4aff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ix-word .9s cubic-bezier(.2, .8, .2, 1) both, ix-shimmer 7s linear infinite; }
.ix-lede { max-width: 620px; margin: 26px auto 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.ix-in { animation: ix-up .8s .45s ease both; }
.ix-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* film */
.ix-film { padding: 8px 0 56px; perspective: 1400px; scroll-margin-top: 86px; }
.ix-stage { position: relative; max-width: 1040px; margin: auto; transform: rotateX(var(--tilt, 0deg)); transform-origin: center top; }
.ix-stage::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 38px; background: linear-gradient(120deg, #cdbcff, #ffd3bd, #bfe0ff, #f6c8ff, #cdbcff); background-size: 300% 100%; filter: blur(24px); opacity: .85; animation: ix-shimmer 12s linear infinite; }
.ix-player { position: relative; overflow: hidden; border-radius: 24px; background: #f3efff; box-shadow: 0 30px 80px -28px rgba(45, 25, 110, .4); }
.ix-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ix-play { position: absolute; left: 50%; top: 70%; width: 80px; height: 80px; margin: -40px 0 0 -40px; padding: 0; border: 0; border-radius: 50%; background: #1a1a19; color: #fff; cursor: pointer; display: grid; place-items: center; animation: ix-pulse 2.2s ease-out infinite; }
.ix-play svg { width: 34px; height: 34px; }
.ix-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.ix-chapters button, .ix-tabs button, .ix-replay { min-height: 38px; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.ix-chapters button:hover { transform: translateY(-2px); }
.ix-chapters button.on, .ix-tabs button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.ix-note { max-width: 660px; margin: 16px auto 0; text-align: center; font-size: 13px; color: var(--text-2); }
.ix-transcript { max-width: 660px; margin: 10px auto 0; font-size: 14px; color: var(--text-2); text-align: center; }
.ix-transcript summary { cursor: pointer; }
.ix-transcript p { text-align: left; line-height: 1.6; }

/* numbers */
.ix-fact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ix-fact-row > div { padding: 22px 10px; text-align: center; }
.ix-fact-row b { display: block; font-size: 34px; letter-spacing: -.035em; }
.ix-fact-row > div > span { display: block; margin-top: 4px; color: var(--text-2); font-size: 14px; }

/* shared blocks */
.intro-page main .btn.is-disabled { max-width: 100%; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: center; }
.ix-section { padding: 96px 0; scroll-margin-top: 70px; }
.ix-band { background: rgba(255, 255, 255, .55); border-block: 1px solid var(--line); }
.ix-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.ix-section h2, .ix-end h2 { margin: 0 0 16px; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.ix-section h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.ix-section p { line-height: 1.65; }
.ix-head > p:not(.ix-kicker), .ix-split > div > p:not(.ix-kicker) { color: var(--text-2); }
.ix-grid { display: grid; gap: 14px; }
.ix-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ix-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ix-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-card { position: relative; overflow: hidden; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .35s, box-shadow .35s; }
.ix-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 74, 255, .12), transparent 70%); transition: opacity .3s; }
.ix-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(45, 25, 110, .35); }
.ix-card:hover::after { opacity: 1; }
.ix-card p { margin: 0; color: var(--text-2); }
.ix-card code { display: inline-block; margin-bottom: 22px; padding: 4px 9px; border-radius: 8px; background: #f1edff; color: var(--accent-ink); font-size: 13px; }
.ix-tint-a { background: linear-gradient(160deg, #eee8ff, #fff 85%); }
.ix-tint-b { background: linear-gradient(160deg, #ffe9dd, #fff 85%); }
.ix-tint-c { background: linear-gradient(160deg, #e1f0ff, #fff 85%); }
.ix-badge { display: inline-block; margin-bottom: 18px; padding: 4px 11px; border-radius: 999px; background: rgba(26, 26, 25, .07); font-size: 12px; }
.ix-aside { max-width: 700px; margin: 24px auto 0; text-align: center; color: var(--text-2); }
.intro-page main kbd { display: inline-block; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--text); font: 12px/1.6 inherit; white-space: nowrap; }

/* story + example */
.ix-story, .ix-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.ix-timeline { position: relative; list-style: none; margin: 30px 0 0; padding: 0; counter-reset: s; }
.ix-timeline li { position: relative; padding: 0 0 34px 56px; counter-increment: s; }
.ix-timeline li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: #fff; font-size: 14px; }
.ix-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 8px; width: 2px; background: linear-gradient(#cdbcff, #ffd3bd); }
.ix-timeline p { margin: 0; color: var(--text-2); }
.ix-demo-wrap { position: sticky; top: 92px; align-self: start; min-width: 0; }
.ix-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ix-demo { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 30px 70px -34px rgba(45, 25, 110, .4); }
.ix-demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbfaf8; font-size: 13px; }
.ix-demo-bar em { margin-left: auto; color: var(--text-2); font-style: normal; }
.ix-demo-body { padding: 20px; font-size: 14px; }
.ix-demo [data-s] { transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.ix-you { width: fit-content; max-width: 100%; margin: 0 0 16px auto; padding: 10px 14px; border-radius: 16px; background: var(--bg-2); }
.ix-tool { margin: 0 0 12px; color: var(--text-2); }
.ix-plan { list-style: none; margin: 0 0 14px; padding: 0; }
.ix-plan li { position: relative; padding: 4px 0 4px 26px; }
.ix-plan li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: inset 0 0 0 4px var(--ok-bg); }
.ix-diff { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.ix-diff > p { display: flex; justify-content: space-between; margin: 0; padding: 8px 12px; background: #fbfaf8; }
.ix-diff pre { margin: 0; overflow-x: auto; font: 12px/1.8 ui-monospace, Consolas, monospace; }
.ix-diff pre span { display: block; padding: 0 12px; }
.ix-diff .a { background: var(--add); color: #14532d; } .ix-diff .d { background: var(--del); color: #8a1f1f; }
.ix-decide { display: flex; align-items: center; min-height: 64px; color: var(--text-2); }
.ix-decide i { display: inline-block; margin-right: 8px; padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-style: normal; transition: transform .2s; }
.ix-decide .ix-apply { background: var(--text); color: #fff; }
.ix-demo[data-step="6"] .ix-apply { transform: scale(.86); }
.ix-done { margin: 0; color: #14532d; font-weight: 500; }
.ix-demo [data-only] { display: none; }
.ix-demo[data-mode="ask"] [data-only="ask"], .ix-demo[data-mode="auto"] [data-only="auto"], .ix-demo[data-mode="plan"] [data-only="plan"] { display: inline; }
.ix-replay { margin-top: 12px; }

/* effort, models */
.ix-split { align-items: center; }
.ix-section .wrap > .ix-split { margin-top: 100px; }
.ix-levels > div { position: relative; display: flex; justify-content: space-between; padding: 14px 0 20px; }
.ix-levels span { color: var(--text-2); }
.ix-levels i { position: absolute; left: 0; bottom: 5px; height: 7px; border-radius: 9px; background: linear-gradient(90deg, #cdbcff, #6d4aff); transform-origin: left; transition: transform 1.3s .15s cubic-bezier(.2, .8, .2, 1); }
.ix-levels .w1 { width: 10%; } .ix-levels .w2 { width: 25%; } .ix-levels .w3 { width: 50%; } .ix-levels .w4 { width: 100%; background: linear-gradient(90deg, #cdbcff, #6d4aff, #f0825a); }
.ix-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ix-pills li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.ix-orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: auto; }
.ix-orbit img { position: absolute; left: 50%; top: 50%; margin: -42px 0 0 -42px; animation: ix-float 4s ease-in-out infinite; }
.ix-ring { position: absolute; inset: 10%; border: 1px dashed #bcaef0; border-radius: 50%; animation: ix-spin 50s linear infinite; }
.ix-ring.r2 { inset: 28%; animation-direction: reverse; animation-duration: 30s; }
.ix-orbit span { position: absolute; translate: -50% -50%; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -14px rgba(45, 25, 110, .4); font-size: 13px; white-space: nowrap; animation: ix-float 4.6s ease-in-out infinite; }
.ix-orbit .o1 { left: 50%; top: 10%; background: var(--text); color: #fff; }
.ix-orbit .o2 { left: 84%; top: 30%; animation-delay: -.8s; } .ix-orbit .o3 { left: 83%; top: 71%; animation-delay: -1.6s; }
.ix-orbit .o4 { left: 50%; top: 90%; animation-delay: -2.4s; } .ix-orbit .o5 { left: 17%; top: 71%; animation-delay: -3.2s; } .ix-orbit .o6 { left: 16%; top: 30%; animation-delay: -4s; }
.ix-plans { margin-top: 48px; }
.ix-card .ix-big { color: var(--text); font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.04em; }
.ix-card .ix-prices { margin-top: 10px; font-size: 14px; }
.ix-plans .btn { margin-top: 22px; }

/* languages */
.ix-marquee { overflow: hidden; padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ix-track { display: flex; width: max-content; animation: ix-slide 34s linear infinite; }
.ix-marquee:hover .ix-track { animation-play-state: paused; }
.ix-track p { display: flex; gap: 46px; margin: 0; padding-right: 46px; color: var(--text-2); font-size: 26px; font-weight: 500; white-space: nowrap; }

/* start, questions, end */
.ix-start { align-items: start; }
.ix-keys dl { margin: 16px 0 0; }
.ix-keys dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ix-keys dd { display: flex; gap: 5px; margin: 0; }
.ix-questions { padding-top: 24px; }
.ix-faq { max-width: 760px; margin: auto; }
.ix-faq details { border-bottom: 1px solid var(--line); }
.ix-faq summary { padding: 20px 0; cursor: pointer; font-weight: 500; }
.ix-faq details p { margin: 0; padding-bottom: 20px; color: var(--text-2); }
.ix-faq details[open] p { animation: ix-up .35s ease both; }
.ix-faq a { color: var(--accent-ink); text-decoration: underline; }
.ix-end { padding: 0 0 100px; }
.ix-end-card { padding: 70px 24px; border-radius: 32px; text-align: center; background: linear-gradient(120deg, #e7dfff, #ffe3d5, #dcecff, #f8dcff, #e7dfff); background-size: 300% 100%; animation: ix-shimmer 14s linear infinite; }
.ix-end p { margin: 0; color: var(--text-2); }

/* entrances: transforms use `translate` so card hover can keep `transform` */
html.ix [data-rise]:not(.on), html.ix [data-stagger] > :not(.on) { opacity: 0; translate: 0 28px; }
html.ix [data-rise].on, html.ix [data-stagger] > .on { animation: ix-reveal .8s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) backwards; }
html.ix .ix-end-card.on { animation: ix-reveal .8s ease backwards, ix-shimmer 14s linear infinite; }
html.ix .ix-levels:not(.on) i { transform: scaleX(0); }
html.ix .ix-demo[data-step="0"] [data-s],
html.ix .ix-demo[data-step="1"] [data-s]:not([data-s="1"]),
html.ix .ix-demo[data-step="2"] [data-s]:not([data-s="1"]):not([data-s="2"]),
html.ix .ix-demo[data-step="3"] :is([data-s="4"], [data-s="5"], [data-s="7"]),
html.ix .ix-demo[data-step="4"] :is([data-s="5"], [data-s="7"]),
html.ix .ix-demo[data-step="5"] [data-s="7"],
html.ix .ix-demo[data-step="6"] [data-s="7"] { opacity: 0; transform: translateY(10px); }

@keyframes ix-word { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ix-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ix-reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes ix-shimmer { to { background-position: 300% 0; } }
@keyframes ix-pulse { from { box-shadow: 0 0 0 0 rgba(109, 74, 255, .5); } to { box-shadow: 0 0 0 26px rgba(109, 74, 255, 0); } }
@keyframes ix-float { 50% { transform: translateY(-9px); } }
@keyframes ix-spin { to { transform: rotate(360deg); } }
@keyframes ix-slide { to { transform: translateX(-50%); } }

@media (max-width: 1080px) {
  .ix-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-story, .ix-split { gap: 44px; }
}
@media (max-width: 860px) {
  .ix-story, .ix-split { grid-template-columns: minmax(0, 1fr); }
  .ix-demo-wrap { position: static; }
  .ix-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ix-fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-section { padding: 68px 0; }
  .ix-section .wrap > .ix-split { margin-top: 64px; }
}
@media (max-width: 560px) {
  .ix-hero { padding: 108px 0 34px; }
  .ix-lede { font-size: 16px; }
  .ix-player { border-radius: 14px; }
  .ix-play { display: none; } /* too little room: the native controls and the button above start the film */
  .ix-grid-4, .ix-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ix-card { padding: 22px; }
  .ix-card code { margin-bottom: 14px; }
  .ix-track p { gap: 30px; padding-right: 30px; font-size: 20px; }
  .ix-orbit span { padding: 6px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-page main *, .intro-page main *::before { animation: none !important; transition: none !important; }
  .ix-track { width: auto; } .ix-track p { flex-wrap: wrap; justify-content: center; } .ix-track p[aria-hidden] { display: none; }
  .ix-progress { display: none; }
}
