:root { --accent: #51ecee; --accent-2: #8af4f6; }
.iri { background: linear-gradient(90deg, var(--hs-a), #a48ab9 45%, var(--hs-b) 75%, var(--hs-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.narrow { max-width: 640px; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.platforms span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero .pill { margin-bottom: 16px; }
.playground { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: radial-gradient(90% 90% at 50% 0%, #1f2230, var(--panel)); border: 1px solid var(--line); touch-action: none; }
.playground canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.play-hint { position: absolute; left: 16px; top: 12px; font-size: .8rem; color: var(--muted); pointer-events: none; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .playground { aspect-ratio: 4 / 3; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pillar { padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.pillar-art { width: 100%; height: auto; margin-bottom: 14px; }
.pillar-art text { fill: var(--text); font: 600 12px Inter, sans-serif; }
.pillar-art .node { fill: var(--panel-2); stroke: var(--line); }
.pillar-art .wire { fill: none; stroke: var(--muted); stroke-width: 2; }
.pillar-art .sock.a, .pillar-art .key.a, .pillar-art .body.a { fill: var(--hs-a); }
.pillar-art .sock.b, .pillar-art .key.b, .pillar-art .body.b { fill: var(--hs-b); }
.pillar-art .sock.c, .pillar-art .body.c { fill: var(--hs-c); }
.pillar-art .ticks { fill: none; stroke: var(--muted); stroke-width: 2; }
.pillar-art .lane { fill: var(--panel-2); }
.pillar-art .head { stroke: var(--hs-b); stroke-width: 2; }
.pillar-art .ground { stroke: var(--line); stroke-width: 3; }

.gens { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.gen { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.gen canvas { flex: none; width: 56px; height: 56px; border-radius: 8px; background: #0d0e12; }
.gen b { display: block; font-size: .95rem; }
.gen span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding: 12px 16px 12px 44px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: linear-gradient(135deg, var(--hs-a), var(--hs-b)); }

.notify { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.notify > div { flex: 1 1 300px; }
.notify img { filter: drop-shadow(0 8px 30px rgba(255, 83, 127, .35)); }
.notify .btn { margin-top: 8px; }

.click-cta { position: absolute; left: 50%; top: 40%; width: clamp(150px, 42%, 210px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; pointer-events: none; border-radius: 50%; background: rgba(81, 236, 238, .16); box-shadow: 0 0 40px rgba(81, 236, 238, .35), inset 0 0 30px rgba(81, 236, 238, .18); transition: opacity .5s, scale .5s; animation: cta-breathe 2.2s ease-in-out infinite; }
.click-cta.gone { opacity: 0; scale: 1.25; animation: none; }
.click-cta .rim { position: absolute; inset: 0; width: 100%; height: 100%; animation: cta-spin 14s linear infinite; }
.click-cta .rim circle { fill: none; stroke: var(--hs-a); stroke-width: 3; stroke-dasharray: 12 9; stroke-linecap: round; }
.click-cta::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hs-a); animation: cta-ping 2.2s ease-out infinite; }
.click-cta .cursor { width: 34px; height: 42px; fill: #fff; stroke: #0d0e12; stroke-width: 1.2; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); animation: cta-tap 1.1s ease-in-out infinite; }
.click-cta b { font-size: 1.35rem; letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.click-cta small { font-size: .85rem; font-weight: 600; color: var(--hs-a); max-width: 70%; line-height: 1.3; }
@keyframes cta-spin { to { transform: rotate(360deg); } }
@keyframes cta-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes cta-tap { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 6px) scale(.92); } }
@keyframes cta-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .click-cta, .click-cta .rim, .click-cta::after, .click-cta .cursor { animation: none; } }

.live { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.live-card { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.live-card h3 { margin-bottom: 12px; }
.live-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; background: #0d0e12; overflow: hidden; perspective: 900px; }
.live-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stack { position: absolute; inset: 6%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); opacity: 0; }
.part { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1), outline-color .6s; outline: 1px dashed transparent; }
.part svg { width: 100%; height: 100%; display: block; overflow: visible; }
.part .nodes circle { fill: #fff; stroke: var(--hs-b); stroke-width: .3; }
.tag { position: absolute; left: 4px; top: 4px; font: 600 .68rem/1 ui-monospace, monospace; color: var(--text); background: rgba(13, 14, 18, .8); padding: 3px 6px; border-radius: 4px; opacity: 0; transition: opacity .5s; }
.live-stage[data-phase="pause"] canvas, .live-stage[data-phase="split"] canvas, .live-stage.static canvas { opacity: 0; }
.live-stage[data-phase="pause"] .stack, .live-stage[data-phase="split"] .stack, .live-stage[data-phase="merge"] .stack, .live-stage.static .stack { opacity: 1; }
.live-stage.split .stack, .live-stage.static .stack { transform: rotateX(58deg) rotateZ(-38deg) scale(.78); }
.live-stage.split .part, .live-stage.static .part { transform: translateZ(calc(var(--i) * 44px - 110px)); outline-color: rgba(236, 237, 241, .35); }
.live-stage.split .tag, .live-stage.static .tag { opacity: 1; }
.still { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(90deg, var(--hs-a), var(--hs-b), var(--hs-c)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(8px); transition: opacity .5s .5s, transform .5s .5s; pointer-events: none; }
.live-stage.split .still, .live-stage.static .still { opacity: 1; transform: none; }
.live-code { display: block; min-height: 1.4em; margin: 10px 0; font: .72rem/1.4 ui-monospace, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s; }
.live-card[data-phase="split"] .live-code { opacity: 1; }

.tl { border-radius: 10px; background: #14151b; border: 1px solid var(--line); overflow: hidden; font-size: .72rem; color: var(--muted); }
.tl-bar { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.tl-play { width: 0; height: 0; border-left: 9px solid var(--hs-a); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tl-play[data-state="pause"] { width: 10px; height: 12px; border: 0; border-left: 3px solid var(--hs-b); border-right: 3px solid var(--hs-b); }
.tl-frame { font-family: ui-monospace, monospace; color: var(--text); }
.tl-state { margin-left: auto; font-weight: 600; }
.live-card[data-phase="play"] .tl-state, .live-card[data-phase="merge"] .tl-state { color: var(--hs-a); }
.tl-tracks { position: relative; padding-left: 64px; }
.tl-ruler { position: relative; height: 18px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: absolute; top: 3px; padding-left: 3px; border-left: 1px solid var(--line); line-height: 1; }
.tl-lane { display: flex; align-items: center; height: 22px; border-bottom: 1px solid var(--line); }
.tl-lane:last-of-type { border-bottom: 0; }
.tl-lane > span { position: absolute; left: 8px; width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lane > div { position: relative; flex: 1; height: 100%; }
.tl-lane i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; transform: rotate(45deg); background: var(--hs-c); }
.tl-head { position: absolute; top: 0; bottom: 0; left: calc(64px + (100% - 64px) * var(--p, 0)); width: 2px; background: var(--hs-b); pointer-events: none; transform: translateX(-1px); }
