/* Shubh Ventures investor portal — motion + brand layer (v2) */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); }

/* brand marks */
.mark { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(11, 95, 199, .25)); }
.brand { gap: 10px; color: var(--navy); }
.brand span { background: linear-gradient(90deg, var(--navy), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme=dark] .brand span { background: linear-gradient(90deg, #e7eefb, #4fc3ff); -webkit-background-clip: text; background-clip: text; }
.brand-full { display: inline-block; position: relative; z-index: 1; }
.logo-full { width: clamp(120px, 14vw, 170px); height: auto; filter: drop-shadow(0 12px 24px rgba(11, 95, 199, .18)); animation: floaty 6s ease-in-out infinite; }
.auth-top-logo { display: none; }
@media (max-width: 860px) { .logo-full { width: 96px; } .auth-art h1 { margin-top: 18px !important; } }

/* boot */
.boot { background: radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%); }
.boot-mark { display: grid; justify-items: center; gap: 18px; }
.boot-mark img { width: 72px; height: 72px; animation: breathe 1.6s ease-in-out infinite; }
.boot-mark i { display: block; width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.boot-mark i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--sky), var(--brand)); animation: slide 1.1s var(--ease) infinite; }

/* top progress bar while the portal talks to the server */
#svp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--sky), var(--brand)); box-shadow: 0 0 10px color-mix(in srgb, var(--sky) 60%, transparent); opacity: 0; transition: width .5s var(--ease), opacity .3s; pointer-events: none; }
#svp-progress.on { opacity: 1; }

/* entrance: content blocks rise in, one after another */
.fx-in > *:not(.grid), .fx-in .grid > *, .fx-in table.t tbody tr { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.fx-auth .card-auth > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.fx-auth .auth-art > * { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.fx-step .card-auth > * { animation: stepin .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.fx-first .side .nav a { animation: slidein .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 60ms); }
.fx-first .side .brand { animation: fade .6s var(--ease) both; }

/* sidebar: moving active pill + hover nudge */
.nav { position: relative; }
.nav a { position: relative; z-index: 1; transition: color .25s, background .25s, transform .25s var(--ease); }
.nav a:hover { transform: translateX(3px); }
.nav a.on { background: transparent; color: var(--brand-ink); }
.nav .pill-bg { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--sky) 80%, var(--brand))); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .45s var(--ease), height .3s var(--ease); z-index: 0; }
.tabbar a { transition: color .2s, transform .25s var(--ease); }
.tabbar a.on { transform: translateY(-2px); }
.tabbar a.on svg { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--brand) 45%, transparent)); }

/* cards + buttons */
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
a.card:hover, .card.click:hover, .inv-card .card:hover, a.inv-card:hover .card { transform: translateY(-3px); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--brand) 55%, transparent); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.btn { position: relative; overflow: hidden; transition: background .2s, transform .15s var(--ease), box-shadow .25s, border-color .2s, color .2s; }
.btn-pri { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--sky) 70%, var(--brand))); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-pri:hover { background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--brand) 85%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .rip { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: rip .6s var(--ease) forwards; pointer-events: none; }
.btn-ghost .rip { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.icon-btn { transition: transform .2s var(--ease), color .2s, border-color .2s, background .2s; }
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.input { transition: border-color .2s, box-shadow .25s var(--ease), background .2s; }
.input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.otp:focus { letter-spacing: .6em; }
.err { animation: shake .42s var(--ease) both; }
.banner { animation: rise .5s var(--ease) both; }
.steps i { position: relative; overflow: hidden; }
.steps i.on { background: var(--line); }
.steps i.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky), var(--brand)); transform-origin: left; animation: grow .6s var(--ease) both; }
.pill { transition: transform .2s var(--ease); }

/* numbers + chart */
.kpi .v { transition: filter .3s; }
.bar i { transform-origin: bottom; animation: bar .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); background: linear-gradient(180deg, var(--sky), var(--brand)); }
.masked .money { transition: filter .3s var(--ease); }
.date-chip { transition: transform .25s var(--ease); }
.li:hover .date-chip { transform: scale(1.06) rotate(-2deg); }
table.t tr.click td { transition: background .2s; }

/* skeleton shimmer in brand tint */
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--sky) 14%, var(--surface-2)) 40%, var(--surface-2) 80%); background-size: 220% 100%; animation: sk 1.3s ease-in-out infinite; }

/* modal + toast */
.modal-bg { animation: fade .25s ease both; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(8, 20, 45, .45); }
.modal { animation: pop .38s var(--ease) both; }
.modal-bg.out { animation: fadeout .2s ease both; }
.modal-bg.out .modal { animation: popout .2s var(--ease-in) both; }
#toast { transition: opacity .3s var(--ease), transform .4s var(--ease); box-shadow: 0 14px 30px -12px rgba(8, 20, 45, .45); }

/* page leave (short) */
.fx-out .content > * { animation: leave .16s var(--ease-in) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes popout { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
