/* VAS Group — bright, playful, premium SaaS theme */
:root {
    --sky: #0ea5e9;
    --violet: #8b5cf6;
    --amber: #f59e0b;
    --emerald: #10b981;
    --rose: #f43f5e;
}

body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

::selection { background: #bae6fd; }

/* ---------- Premium typography ---------- */
h1, h2, h3, .font-display { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }

/* ---------- Film grain ---------- */
body::after {
    content: ""; position: fixed; inset: -50%; z-index: 60; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .028; animation: grain 8s steps(10) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-8%) }
    30% { transform: translate(4%,-4%) } 50% { transform: translate(-6%,6%) }
    70% { transform: translate(6%,3%) } 90% { transform: translate(-3%,7%) }
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 200; background: #fff;
    display: grid; place-items: center;
    transition: opacity .5s ease, visibility .5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pre-word { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: #0f172a; letter-spacing: -.02em; }
.pre-bar { width: 8rem; height: 3px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.pre-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--sky), var(--violet)); animation: prefill 1s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes prefill { to { width: 100% } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; border-radius: 9999px; }
.cursor-dot { width: 7px; height: 7px; background: #6366f1; transform: translate(-50%,-50%); }
.cursor-ring {
    width: 36px; height: 36px; border: 1.5px solid rgba(99,102,241,.5);
    transform: translate(-50%,-50%);
    transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: rgba(56,189,248,.7); background: rgba(56,189,248,.08); }
@media (hover:none), (pointer:coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Split text animation ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.split-in .split-word > span { transform: translateY(0); }

/* ---------- Magnetic elements ---------- */
.magnetic { transition: transform .25s cubic-bezier(.22,1,.36,1); will-change: transform; }

/* ---------- Header hide on scroll ---------- */
#siteHeader.hide { transform: translateY(-100%); }

/* ---------- Premium link underline on cards ---------- */
.card h3, .card h2 { transition: color .2s ease; }
a.card:hover h3, a.card:hover h2 { color: #0284c7; }

/* ---------- Smooth image treatment ---------- */
.img-lift { transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease; }
.img-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(30,58,138,.4); }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.6rem; border-radius: 9999px;
    font-weight: 700; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--sky), var(--violet) 60%, #d946ef);
    background-size: 200% 100%;
    box-shadow: 0 10px 24px -8px rgba(124, 92, 246, .5);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background-position .4s ease;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px -8px rgba(124,92,246,.6); background-position: 100% 0; }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.6rem; border-radius: 9999px;
    font-weight: 700; color: #334155; background: #fff;
    border: 1.5px solid #e2e8f0;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease;
}
.btn-ghost:hover { border-color: #7dd3fc; transform: translateY(-3px); box-shadow: 0 12px 26px -12px rgba(2,132,199,.3); }

/* ---------- Typography helpers ---------- */
.grad-text {
    background: linear-gradient(100deg, var(--sky), var(--violet) 55%, #d946ef);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd;
    padding: .4rem .9rem; border-radius: 9999px;
}

/* ---------- Hero atmosphere ---------- */
.hero-glow { position: relative; overflow: hidden; }
.hero-glow::before {
    content: ""; position: absolute; inset: -20% -10% auto; height: 780px;
    background:
        radial-gradient(38% 42% at 18% 30%, rgba(56,189,248,.26), transparent 70%),
        radial-gradient(34% 40% at 82% 22%, rgba(167,139,250,.26), transparent 70%),
        radial-gradient(30% 36% at 55% 62%, rgba(251,191,36,.15), transparent 70%);
    animation: drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes drift { to { transform: translate(3%, 4%) scale(1.06); } }

.blob {
    position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .5;
    animation: float-blob 12s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes float-blob { to { transform: translate(20px, -30px) scale(1.1); } }

/* ---------- Cards with mouse spotlight ---------- */
.card {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #e8edf3; border-radius: 1.5rem;
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56,189,248,.12), transparent 65%);
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: #bae6fd; box-shadow: 0 24px 50px -22px rgba(2,132,199,.3); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.icon-chip {
    width: 3.25rem; height: 3.25rem; border-radius: 1.1rem; display: grid; place-items: center; color: #fff;
    box-shadow: 0 10px 20px -8px currentColor;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .icon-chip { transform: scale(1.1) rotate(-6deg); }

/* ---------- App window mockup ---------- */
.app-window {
    background: #fff; border: 1px solid #e8edf3; border-radius: 1.5rem;
    box-shadow: 0 40px 90px -34px rgba(30,58,138,.32); overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    transform-style: preserve-3d;
}
.app-window-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1.15rem; border-bottom: 1px solid #f1f5f9; background: linear-gradient(180deg,#fff,#f8fafc); }
.app-dot { width: .65rem; height: .65rem; border-radius: 9999px; }

/* ---------- Charts ---------- */
.bar { border-radius: .375rem .375rem 0 0; background: linear-gradient(180deg,#38bdf8,#818cf8); animation: grow 1.1s cubic-bezier(.22,1,.36,1) both; transform-origin: bottom; }
.bar:nth-child(2n) { animation-delay: .05s } .bar:nth-child(3n) { animation-delay: .1s } .bar:nth-child(4n) { animation-delay: .15s }
@keyframes grow { from { transform: scaleY(0); } }

.pulse-dot { position: relative; }
.pulse-dot::after { content:""; position:absolute; inset:-6px; border-radius:9999px; background:rgba(16,185,129,.35); animation:pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform:scale(.6); opacity:1 } to { transform:scale(1.7); opacity:0 } }

/* ---------- Floating cards ---------- */
.float-card {
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border: 1px solid #eef2f7; border-radius: 1.1rem;
    box-shadow: 0 20px 45px -18px rgba(30,58,138,.28);
    animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---------- Photos ---------- */
.photo-ring {
    border-radius: 1.4rem; overflow: hidden; position: relative;
    box-shadow: 0 24px 50px -20px rgba(30,58,138,.35);
    transition: transform .4s ease;
}
.photo-ring::after {
    content:""; position:absolute; inset:0;
    background: linear-gradient(160deg, rgba(56,189,248,.18), transparent 45%, rgba(139,92,246,.18));
    opacity: 0; transition: opacity .3s ease;
}
.photo-ring:hover { transform: scale(1.03) rotate(-1deg); }
.photo-ring:hover::after { opacity: 1; }
.photo-ring img { width:100%; height:100%; object-fit: cover; display:block; }

.avatar {
    width: 3rem; height: 3rem; border-radius: 9999px; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(30,58,138,.35);
}
.avatar-stack .avatar { margin-left: -0.85rem; transition: transform .2s ease; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar:hover { transform: translateY(-4px) scale(1.1); }

/* ---------- Tabs ---------- */
.suite-tab {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .85rem 1.15rem; border-radius: 1rem; text-align: left;
    font-weight: 700; font-size: .9rem; color: #64748b;
    border: 1.5px solid transparent; transition: all .2s ease; cursor: pointer;
    background: transparent;
}
.suite-tab:hover { background: #f8fafc; color: #0f172a; }
.suite-tab.active { background: #fff; color: #0f172a; border-color: #e2e8f0; box-shadow: 0 12px 26px -14px rgba(30,58,138,.25); }
.tab-panel { display: none; animation: fadeUp .45s cubic-bezier(.22,1,.36,1); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s } .reveal-delay-2 { transition-delay: .16s } .reveal-delay-3 { transition-delay: .24s }

/* ---------- Marquee ---------- */
.marquee { display: flex; gap: 3.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq-item > summary { cursor: pointer; list-style: none; transition: color .2s; }
.faq-item > summary:hover { color: #0284c7; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] summary svg, .faq-item[open] summary .lucide { transform: rotate(180deg); }
.faq-item summary .lucide { transition: transform .25s ease; }

/* ---------- Nav link underline ---------- */
.nav-link { position: relative; }
.nav-link::after {
    content:""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
    background: linear-gradient(90deg, var(--sky), var(--violet)); border-radius: 2px;
    transition: right .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: #0284c7; }

/* ---------- Footer ---------- */
.footer-heading { font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #0f172a; margin-bottom: .9rem; }

/* ---------- Inputs ---------- */
.field {
    margin-top: .4rem; width: 100%; border-radius: .9rem;
    border: 1.5px solid #e2e8f0; padding: .8rem 1.1rem; font-size: .9rem;
    transition: border-color .2s, box-shadow .2s; background: #fff;
}
.field:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.15); }
.field-label { font-size: .72rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Misc ---------- */
.tick-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: tick .8s .3s ease forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- 3D & depth ---------- */
.scene-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.depth-layer { transform-style: preserve-3d; }
.parallax { will-change: transform; transition: transform .18s ease-out; }

/* gradient border card */
.card-glow { position: relative; }
.card-glow::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, rgba(56,189,248,.55), rgba(139,92,246,.45), rgba(217,70,239,.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

/* scroll progress */
#scrollProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--sky), var(--violet), #d946ef);
    z-index: 100; border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(139,92,246,.6);
}

/* toasts */
#toastStack { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; display: flex; flex-direction: column; gap: .6rem; }
.toast {
    display: flex; align-items: center; gap: .7rem;
    background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
    border: 1px solid #e8edf3; border-radius: 1rem; padding: .8rem 1.1rem;
    box-shadow: 0 20px 45px -15px rgba(30,58,138,.35);
    font-size: .8rem; font-weight: 700; color: #1e293b;
    animation: toastIn .45s cubic-bezier(.34,1.56,.64,1);
    max-width: 20rem;
}
.toast.out { animation: toastOut .35s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px) scale(.9); } }

/* live feed rows */
.feed-row { animation: feedIn .5s cubic-bezier(.22,1,.36,1); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* command palette */
.cmdk {
    position: fixed; inset: 0; z-index: 80; display: none;
    background: rgba(15,23,42,.35); backdrop-filter: blur(4px);
    align-items: flex-start; justify-content: center; padding-top: 18vh;
}
.cmdk.open { display: flex; animation: fadeUp .2s ease; }
.cmdk-box {
    width: min(34rem, 90vw); background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    border-radius: 1.25rem; border: 1px solid #e8edf3; overflow: hidden;
    box-shadow: 0 40px 90px -20px rgba(30,58,138,.45);
}
.cmdk-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .8rem 1.1rem; font-size: .85rem; font-weight: 700; color: #334155; text-align: left; }
.cmdk-item:hover, .cmdk-item.sel { background: #f0f9ff; color: #0284c7; }

/* shimmering skeleton / data pulse */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%); animation: shimmer 2.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } from { transform: translateX(-100%); } }

/* gradient headline shimmer */
.grad-anim { background-size: 200% auto; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 200% center; } }

/* depth shadow for the "built" feel */
.depth-shadow { box-shadow: 0 1px 2px rgba(30,58,138,.06), 0 8px 16px -8px rgba(30,58,138,.12), 0 24px 48px -16px rgba(30,58,138,.2); }

/* animated SVG line chart */
.line-chart path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLine 2s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* status grid blinking */
.blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* subtle grid backdrop */
.grid-bg {
    background-image: linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
