/* LYS v9 — logo theme polish + new effects (adaptive motion, skeleton, KPI, charts, 3D, waveform, physics) */
:root { --lg-navy: #0b2a8a; --lg-deep: #061a5c; --lg-blue: #0a5fd0; --lg-sky: #33b8ee; --lg-ice: #e8f6fd; }

/* --- logo-colored accents --- */
.nav4::after { background: linear-gradient(90deg, #0b2a8a, #0a5fd0, #33b8ee, #8ad8f5, #0a5fd0, #0b2a8a) !important; background-size: 300% 100% !important; }
.n4-quote { background: linear-gradient(135deg, #0b2a8a, #0a5fd0 60%, #33b8ee) !important; box-shadow: 0 12px 24px -12px rgba(10,95,208,.8), inset 0 1px 0 rgba(255,255,255,.25) !important; }
.n4-quote:hover { box-shadow: 0 18px 30px -12px rgba(10,95,208,.9) !important; }
::selection { background: rgba(51,184,238,.3); color: #061a5c; }
.lyt-hero .button-gold { color: #04163f; }

/* --- skeleton shimmer --- */
@keyframes v9Sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk, img.sk-img { background: linear-gradient(90deg, #edf3fc 25%, #dceafa 37%, #edf3fc 63%); background-size: 400% 100%; animation: v9Sk 1.4s ease infinite; }
img.sk-img { color: transparent; }

/* --- section --- */
.v9 { position: relative; background: radial-gradient(1200px 400px at 85% -10%, rgba(51,184,238,.12), transparent 60%), linear-gradient(180deg, #fff, #f4f8ff); }
.v9-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.v9-top .shead { margin-bottom: 0; }
.v9-motion { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #d5e3fb; background: #fff; color: var(--lg-navy); border-radius: 999px; padding: .5rem .95rem; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 20px -14px rgba(11,42,138,.5); transition: transform .3s, box-shadow .3s; }
.v9-motion:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(11,42,138,.6); }
.v9-card { position: relative; height: 100%; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.96); border: 1px solid #e3ecfb; box-shadow: 0 1px 0 rgba(11,42,138,.04), 0 20px 44px -28px rgba(11,42,138,.45); overflow: hidden; }
.v9-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--lg-navy), var(--lg-blue), var(--lg-sky)); }
.v9-h { display: flex; gap: .8rem; align-items: center; margin-bottom: 14px; }
.v9-h h3 { margin: 0; font-size: 1.08rem; color: #0b1538; }
.v9-h p { margin: 0; font-size: .86rem; color: #6b7594; }
.v9-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--lg-navy), var(--lg-blue) 60%, var(--lg-sky)); box-shadow: 0 10px 20px -10px rgba(10,95,208,.8); }

/* KPIs */
.v9-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v9-kpi { padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #f6faff, #eef5ff); border: 1px solid #e1ecfc; }
.v9-kpi small { display: block; font-size: .72rem; color: #6b7594; font-weight: 600; }
.v9-kpi b { display: block; font-size: 1.45rem; line-height: 1.2; color: var(--lg-navy); font-variant-numeric: tabular-nums; }
.v9-kpi em { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--lg-blue); }
.v9-kpi em.up { color: #059669; }
.v9-kpi span.tick { animation: v9Tick .5s ease; }
@keyframes v9Tick { 0% { color: var(--lg-sky); } 100% { color: inherit; } }

/* chart */
.v9-plot { position: relative; margin-top: 14px; height: 250px; }
.v9-svg { position: absolute; inset: 0 0 52px; width: 100%; height: calc(100% - 52px); overflow: visible; }
.v9-grid line { stroke: #e3ecfb; stroke-dasharray: 4 6; }
.v9-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: d .9s cubic-bezier(.22,1,.36,1); filter: drop-shadow(0 6px 10px rgba(10,95,208,.35)); }
.v9-area { opacity: 0; transition: d .9s cubic-bezier(.22,1,.36,1), opacity .8s .9s; }
.v9-dot { fill: #fff; stroke: var(--lg-sky); stroke-width: 3; opacity: 0; transition: cx .9s cubic-bezier(.22,1,.36,1), cy .9s cubic-bezier(.22,1,.36,1), opacity .4s 1.6s; }
.v9-chart.on .v9-line { animation: v9Draw 1.8s cubic-bezier(.65,0,.35,1) forwards; }
.v9-chart.on .v9-area, .v9-chart.on .v9-dot { opacity: 1; }
@keyframes v9Draw { to { stroke-dashoffset: 0; } }
.v9-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.v9-bars span { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.v9-bars i { display: block; width: 100%; max-width: 46px; height: var(--h, 0%); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--lg-sky), var(--lg-blue)); transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 90ms + .6s), height .9s cubic-bezier(.22,1,.36,1); }
.v9-chart.on .v9-bars i { transform: scaleY(1); }
.v9-bars small { margin-top: 3px; font-size: .62rem; color: #6b7594; white-space: nowrap; }
.v9-sk { position: absolute; inset: 0 0 52px; display: grid; gap: 14px; align-content: center; transition: opacity .5s; }
.v9-sk i { display: block; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #edf3fc 25%, #dceafa 37%, #edf3fc 63%); background-size: 400% 100%; animation: v9Sk 1.4s ease infinite; }
.v9-sk i:nth-child(2) { width: 80%; } .v9-sk i:nth-child(3) { width: 60%; }
.v9-chart.on .v9-sk { opacity: 0; pointer-events: none; }
.v9-note { margin: 12px 0 0; font-size: .74rem; color: #7a84a3; }

/* 3D server */
.v9-stage { position: relative; height: 260px; perspective: 900px; cursor: grab; touch-action: none; outline: none; }
.v9-stage:active { cursor: grabbing; }
.v9-stage:focus-visible { box-shadow: inset 0 0 0 3px rgba(51,184,238,.6); border-radius: 18px; }
.v9-cube { --w: 250px; --h: 92px; --d: 210px; position: absolute; left: 50%; top: 46%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; transform: rotateX(var(--rx, -18deg)) rotateY(var(--ry, -32deg)); }
.v9-cube .f { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(160deg, #0f2f8f, #061a5c); backface-visibility: hidden; }
.v9-cube .front, .v9-cube .back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.v9-cube .front { transform: translateZ(calc(var(--d) / 2)); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: linear-gradient(180deg, #13379e, #0a2272); }
.v9-cube .back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.v9-cube .right, .v9-cube .left { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.v9-cube .right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.v9-cube .left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.v9-cube .top, .v9-cube .bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.v9-cube .top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); display: grid; place-items: center; background: linear-gradient(135deg, #1a43b0, #0b2a8a 60%, #082067); }
.v9-cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #04123f; }
.v9-cube .top em { font-style: normal; font-weight: 800; letter-spacing: .12em; color: rgba(255,255,255,.85); font-size: .8rem; }
.v9-cube .bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.v9-cube .bays i { height: 26px; border-radius: 3px; background: linear-gradient(180deg, #1f4fc4, #0c2a86); border: 1px solid rgba(255,255,255,.18); position: relative; }
.v9-cube .bays i::after { content: ""; position: absolute; right: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--lg-sky); box-shadow: 0 0 6px var(--lg-sky); animation: v9Led 1.2s calc(var(--k) * .17s) infinite; }
.v9-cube .front b { color: #fff; font-size: .7rem; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.v9-cube .leds { display: grid; gap: 5px; }
.v9-cube .leds i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: v9Led 2s infinite; }
.v9-cube .leds i:nth-child(2) { background: var(--lg-sky); box-shadow: 0 0 8px var(--lg-sky); animation-delay: .4s; }
.v9-cube .leds i:nth-child(3) { animation-delay: .9s; }
@keyframes v9Led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.v9-cube .ports { display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; }
.v9-cube .ports i { width: 14px; height: 11px; border-radius: 2px; background: #021047; border: 1px solid rgba(51,184,238,.5); }
.v9-cube .fan { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 18deg, transparent 18deg 45deg); animation: v9Spin 1.1s linear infinite; }
@keyframes v9Spin { to { transform: rotate(360deg); } }
.v9-cube .vent { position: absolute; inset: 18px 22px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 3px, transparent 3px 9px); border-radius: 6px; }
.v9-shadow { position: absolute; left: 50%; bottom: 14px; width: 260px; height: 26px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,42,138,.35), transparent); filter: blur(4px); }
.v9-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.v9-spec li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--lg-ice); color: var(--lg-navy); font-size: .78rem; font-weight: 700; }

/* voice waveform */
.v9-wave { display: block; width: 100%; height: 130px; border-radius: 18px; background: radial-gradient(120% 120% at 50% 0%, #0f2f8f, #061a5c 70%); }
.v9-langs { display: flex; gap: 8px; margin: 12px 0; }
.v9-langs span { padding: .3rem .75rem; border-radius: 999px; background: var(--lg-ice); color: var(--lg-navy); font-weight: 700; font-size: .85rem; animation: v9Bob 3s ease-in-out infinite; }
.v9-langs span:nth-child(2) { animation-delay: .5s; } .v9-langs span:nth-child(3) { animation-delay: 1s; }
@keyframes v9Bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.v9-vbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.v9-mic, .v9-wa, .v9-go { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1.05rem; border-radius: 14px; border: 0; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.v9-mic { color: #fff; background: linear-gradient(135deg, var(--lg-navy), var(--lg-blue)); box-shadow: 0 12px 22px -12px rgba(10,95,208,.9); }
.v9-mic.on { background: linear-gradient(135deg, #dc2626, #f97066); box-shadow: 0 0 0 0 rgba(220,38,38,.5); animation: v9Pulse 1.6s infinite; }
@keyframes v9Pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 100% { box-shadow: 0 0 0 16px rgba(220,38,38,0); } }
.v9-wa { color: #fff; background: #16a34a; }
.v9-mic:hover, .v9-wa:hover, .v9-go:hover { transform: translateY(-2px); color: #fff; }
.v9-mnote { display: block; margin-top: 10px; font-size: .72rem; color: #7a84a3; }

/* drag physics */
.v9-play { position: relative; height: 260px; border-radius: 18px; background: linear-gradient(180deg, #f6faff, #ecf4ff); border: 1px dashed #c9dbf6; overflow: hidden; touch-action: none; }
.v9-chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 14px; border: 1px solid #d5e3fb; background: #fff; color: var(--lg-navy); font-weight: 700; font-size: .84rem; white-space: nowrap; cursor: grab; user-select: none; box-shadow: 0 10px 20px -14px rgba(11,42,138,.6); will-change: transform; z-index: 2; }
.v9-chip i { color: var(--lg-blue); }
.v9-chip.drag { cursor: grabbing; z-index: 5; box-shadow: 0 22px 34px -16px rgba(11,42,138,.7); }
.v9-chip.in { background: linear-gradient(135deg, var(--lg-navy), var(--lg-blue)); color: #fff; border-color: transparent; }
.v9-chip.in i { color: var(--lg-sky); }
.v9-drop { position: absolute; right: 14px; top: 14px; bottom: 14px; width: 34%; border-radius: 16px; border: 2px dashed rgba(10,95,208,.35); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--lg-blue); font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.55); transition: background .3s, border-color .3s, transform .3s; z-index: 1; }
.v9-drop i { font-size: 1.8rem; }
.v9-drop.hot { background: rgba(51,184,238,.14); border-color: var(--lg-sky); transform: scale(1.02); }
.v9-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.v9-list { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: #6b7594; }
.v9-list b { padding: .25rem .6rem; border-radius: 999px; background: var(--lg-ice); color: var(--lg-navy); font-weight: 700; animation: v9Pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes v9Pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.v9-go { color: #fff; background: linear-gradient(135deg, var(--lg-navy), var(--lg-blue) 60%, var(--lg-sky)); box-shadow: 0 12px 22px -12px rgba(10,95,208,.9); }

@media (max-width: 991.98px) { .v9-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .v9-card { padding: 16px; } .v9-kpi b { font-size: 1.2rem; } .v9-bars small { font-size: .55rem; } .v9-cube { --w: 210px; --d: 170px; } .v9-drop { width: 40%; } }

/* --- adaptive motion system --- */
html.m-lite .fx, html.m-lite canvas.fx { display: none !important; }
html.m-lite *, html.m-lite *::before, html.m-lite *::after { backdrop-filter: none !important; }
html.m-lite .cur-ring, html.m-lite .cur-dot, html.m-lite .dust { display: none !important; }
html.m-off *, html.m-off *::before, html.m-off *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.m-off .fx, html.m-off .cur-ring, html.m-off .cur-dot { display: none !important; }
html.m-off .v9-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .v9-line { stroke-dashoffset: 0; animation: none !important; } .v9-bars i { transform: none; transition: none; } }
