/* ============================================================
   VSynap — shared design system.
   One visual language across every page: colour tokens, type
   scale, surfaces, buttons, icons, backgrounds and the motion
   system. Loaded by every page alongside vsynap-nav.css.

   Theme: light by default, dark via body.dark-mode (the shared
   nav owns that class), so both themes stay in sync sitewide.
   ============================================================ */

:root {
    /* brand ramp */
    --vs-blue: #2563EB;
    --vs-blue-deep: #1D4ED8;
    --vs-cyan: #0891B2;
    --vs-cyan-bright: #06B6D4;
    --vs-purple: #6D28D9;

    /* light surfaces */
    --vs-bg: #F6F8FC;
    --vs-surface: #FFFFFF;
    --vs-surface-2: #F0F4FA;
    --vs-ink: #08111F;
    --vs-body: #2F3B4F;
    --vs-muted: #5A6678;
    --vs-line: rgba(8, 17, 31, 0.12);
    --vs-line-soft: rgba(8, 17, 31, 0.07);

    /* accents that stay legible on light surfaces */
    --vs-accent: #0E7490;
    --vs-accent-2: #6D28D9;

    --vs-shadow-sm: 0 1px 2px rgba(9, 20, 40, .06), 0 2px 8px rgba(9, 20, 40, .04);
    --vs-shadow-md: 0 8px 24px rgba(9, 20, 40, .08);
    --vs-shadow-lg: 0 24px 60px rgba(9, 20, 40, .14);

    --vs-radius: 16px;
    --vs-radius-lg: 22px;

    --vs-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
    --vs-text: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;

    /* one easing for the whole site so motion feels consistent */
    --vs-ease: cubic-bezier(.16, 1, .3, 1);
    --vs-fast: .22s;
    --vs-mid: .4s;
}

body.dark-mode {
    --vs-bg: #071426;
    --vs-surface: #0C1B30;
    --vs-surface-2: #0A1728;
    --vs-ink: #FFFFFF;
    --vs-body: #C6D0E0;
    --vs-muted: #93A0B5;
    --vs-line: rgba(255, 255, 255, 0.14);
    --vs-line-soft: rgba(255, 255, 255, 0.08);
    --vs-accent: #22D3EE;
    --vs-accent-2: #C4B5FD;
    --vs-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --vs-shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --vs-shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ---------- layout ---------- */
.vs-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.vs-section {
    padding: 88px 0;
    position: relative;
}

.vs-section--tight {
    padding: 64px 0;
}

.vs-section--alt {
    background: var(--vs-surface-2);
    border-top: 1px solid var(--vs-line-soft);
    border-bottom: 1px solid var(--vs-line-soft);
}

@media (max-width: 768px) {
    .vs-shell {
        padding: 0 20px;
    }

    .vs-section {
        padding: 60px 0;
    }

    .vs-section--tight {
        padding: 44px 0;
    }
}

/* ---------- type ---------- */
.vs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--vs-text);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--vs-accent);
    margin-bottom: 14px;
}

.vs-eyebrow svg {
    width: 15px;
    height: 15px;
}

.vs-h2 {
    font-family: var(--vs-display);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -.8px;
    color: var(--vs-ink);
    margin-bottom: 14px;
}

.vs-h3 {
    font-family: var(--vs-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--vs-ink);
}

.vs-lede {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--vs-body);
    max-width: 620px;
}

.vs-head {
    max-width: 660px;
    margin-bottom: 44px;
}

.vs-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.vs-grad {
    background: linear-gradient(100deg, var(--vs-blue), var(--vs-cyan) 55%, var(--vs-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark-mode .vs-grad {
    background: linear-gradient(100deg, #60A5FA, var(--vs-cyan-bright) 55%, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- surfaces ---------- */
.vs-card {
    position: relative;
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-lg);
    padding: 30px;
    box-shadow: var(--vs-shadow-sm);
    transition: transform var(--vs-mid) var(--vs-ease),
        box-shadow var(--vs-mid) var(--vs-ease),
        border-color var(--vs-mid) var(--vs-ease);
}

/* a hairline gradient edge that fades in on hover */
.vs-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--vs-blue), var(--vs-cyan-bright), var(--vs-purple));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--vs-mid) var(--vs-ease);
    pointer-events: none;
}

.vs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vs-shadow-md);
}

.vs-card:hover::after {
    opacity: .55;
}

/* ---------- icons ---------- */
.vs-ico {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* tile that holds a feature icon */
.vs-ico-tile {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vs-accent);
    background: linear-gradient(140deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
    border: 1px solid var(--vs-line);
    margin-bottom: 16px;
    transition: transform var(--vs-mid) var(--vs-ease), color var(--vs-mid) var(--vs-ease);
}

.vs-ico-tile .vs-ico {
    width: 23px;
    height: 23px;
}

.vs-card:hover .vs-ico-tile,
.vs-feature:hover .vs-ico-tile {
    transform: translateY(-2px) scale(1.04);
}

/* ---------- buttons ---------- */
.vs-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--vs-text);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--vs-fast) var(--vs-ease),
        box-shadow var(--vs-mid) var(--vs-ease),
        background var(--vs-fast) var(--vs-ease),
        border-color var(--vs-fast) var(--vs-ease);
}

.vs-btn .vs-ico {
    width: 18px;
    height: 18px;
    transition: transform var(--vs-fast) var(--vs-ease);
}

.vs-btn:hover .vs-ico--arrow {
    transform: translateX(4px);
}

/* Primary button: a white pill with a brand-gradient border and label.
   The gradient sits in the border layer via a mask, so the face stays
   pure white; on hover the gradient sweeps and the shadow deepens. */
.vs-btn--primary {
    position: relative;
    background: #FFFFFF;
    color: #1D4ED8;
    /* border stays transparent (not none) so this pill keeps the same
       box size as the ghost button sitting next to it */
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(29, 78, 216, .16);
    transition: transform var(--vs-fast) var(--vs-ease),
        box-shadow var(--vs-mid) var(--vs-ease),
        color var(--vs-fast) var(--vs-ease);
}

/* gradient ring drawn in the padding-box gap */
.vs-btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(100deg, #1D4ED8, #4F46E5 45%, #0E7490);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background-position .6s var(--vs-ease);
}

.vs-btn--primary:hover {
    transform: translateY(-2px);
    color: #4F46E5;
    box-shadow: 0 12px 28px rgba(79, 70, 229, .26);
}

.vs-btn--primary:hover::before {
    background-position: 100% 50%;
}

/* keep the pill white and legible on dark backgrounds */
body.dark-mode .vs-btn--primary {
    background: #FFFFFF;
    color: #1D4ED8;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}

body.dark-mode .vs-btn--primary:hover {
    color: #4F46E5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

@media (prefers-reduced-motion: reduce) {

    .vs-btn--primary,
    .vs-btn--primary::before {
        transition: none;
    }
}

.vs-btn--ghost {
    background: var(--vs-surface);
    border-color: var(--vs-line);
    color: var(--vs-ink);
}

.vs-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--vs-accent);
    color: var(--vs-accent);
    box-shadow: var(--vs-shadow-sm);
}

.vs-btn:focus-visible,
.vs-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--vs-accent);
    outline-offset: 3px;
}

.vs-btn[aria-disabled="true"],
.vs-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* inline text link with a sliding arrow */
.vs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--vs-accent);
    text-decoration: none;
}

.vs-link .vs-ico {
    width: 17px;
    height: 17px;
    transition: transform var(--vs-fast) var(--vs-ease);
}

.vs-link:hover .vs-ico {
    transform: translateX(4px);
}

/* ---------- pills / badges ---------- */
.vs-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid;
}

.vs-pill--live {
    color: var(--vs-accent);
    background: rgba(6, 182, 212, .12);
    border-color: rgba(6, 182, 212, .35);
}

.vs-pill--soon {
    color: #6D28D9;
    background: rgba(109, 40, 217, .12);
    border-color: rgba(109, 40, 217, .32);
}

body.dark-mode .vs-pill--soon {
    color: #C4B5FD;
}

.vs-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: vs-blink 2.4s ease-in-out infinite;
}

@keyframes vs-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ---------- decorative backgrounds ----------
   Used sparingly — never more than one per section. */
.vs-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.vs-bg>* {
    position: absolute;
}

.vs-blob {
    border-radius: 50%;
    filter: blur(90px);
    opacity: .30;
    will-change: transform;
}

body.dark-mode .vs-blob {
    opacity: .34;
}

.vs-grid-lines {
    inset: 0;
    background-image:
        linear-gradient(var(--vs-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--vs-line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}

.vs-dots {
    inset: 0;
    background-image: radial-gradient(var(--vs-line) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%);
    opacity: .7;
}

/* ---------- motion system ----------
   The hidden state only applies once JS confirms it can observe
   (html.vs-anim), so content is never stranded at opacity:0. */
.vs-anim [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--vs-ease), transform .6s var(--vs-ease);
    will-change: opacity, transform;
}

.vs-anim [data-reveal="left"] {
    transform: translateX(-24px);
}

.vs-anim [data-reveal="right"] {
    transform: translateX(24px);
}

.vs-anim [data-reveal="scale"] {
    transform: scale(.96);
}

.vs-anim [data-reveal="blur"] {
    filter: blur(8px);
    transition: opacity .6s var(--vs-ease), transform .6s var(--vs-ease), filter .6s var(--vs-ease);
}

.vs-anim [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* entrance sequence for above-the-fold content */
@keyframes vs-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.vs-enter {
    opacity: 0;
    animation: vs-rise .7s var(--vs-ease) forwards;
}

.vs-enter-1 {
    animation-delay: .05s;
}

.vs-enter-2 {
    animation-delay: .15s;
}

.vs-enter-3 {
    animation-delay: .25s;
}

.vs-enter-4 {
    animation-delay: .35s;
}

.vs-enter-5 {
    animation-delay: .45s;
}

/* page-transition veil: fades out on load, in on internal navigation */
.vs-veil {
    position: fixed;
    inset: 0;
    background: var(--vs-bg);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.vs-veil.is-on {
    opacity: 1;
}

/* ---------- accessibility ---------- */
.vs-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {

    .vs-anim [data-reveal],
    .vs-anim [data-reveal].is-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .vs-enter {
        opacity: 1;
        animation: none;
    }

    .vs-veil {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* never let a decorative layer cause sideways scroll */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* selected text — brand cyan with white type, on every page */
::selection {
    background: #0E7490;
    color: #FFFFFF;
}

::-moz-selection {
    background: #0E7490;
    color: #FFFFFF;
}

body.dark-mode ::selection {
    background: #22D3EE;
    color: #04101F;
}

body.dark-mode ::-moz-selection {
    background: #22D3EE;
    color: #04101F;
}

/* ============================================================
   SITE FOOTER — shared across every page.
   ============================================================ */
.vs-footer {
    /* footer text tokens — high-contrast in light mode */
    --vs-footer-text: #0D0B0C;
    --vs-footer-dim: rgba(13, 11, 12, 0.72);

    background: var(--vs-surface-2);
    border-top: 1px solid var(--vs-line-soft);
    padding: 62px 0 26px;
    font-family: var(--vs-text);
    color: var(--vs-footer-text);
    position: relative;
    z-index: 1;
}

body.dark-mode .vs-footer {
    --vs-footer-text: var(--vs-body);
    --vs-footer-dim: var(--vs-muted);
}

.vs-footer__top {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
}

.vs-footer__logo {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.vs-footer__brand p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--vs-footer-text);
    max-width: 300px;
    margin: 0 0 14px;
}

.vs-footer__addr {
    font-size: 13.5px !important;
    color: var(--vs-footer-dim) !important;
}

.vs-footer__cols {
    display: grid;
    /* last column holds the email addresses — give it the width the
       longest address needs so it can stay on one line */
    grid-template-columns: repeat(3, 1fr) max-content;
    gap: 28px;
}

.vs-footer__col h4 {
    font-family: var(--vs-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vs-footer-text);
    margin: 0 0 15px;
    font-weight: 700;
}

body.dark-mode .vs-footer__col h4 {
    color: var(--vs-muted);
}

.vs-footer__col a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--vs-footer-text);
    text-decoration: none;
    margin-bottom: 11px;
    transition: color var(--vs-fast) var(--vs-ease), transform var(--vs-fast) var(--vs-ease);
}

/* Email addresses must never break mid-address. The contact column is
   sized (below) to fit the longest one, so nowrap won't overflow. */
.vs-footer__col a[href^="mailto:"] {
    white-space: nowrap;
}

.vs-footer__col a:hover {
    color: var(--vs-accent);
    transform: translateX(3px);
}

.vs-footer__col a svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* real app marks replace the generic line icons for product links */
.vs-footer__applogo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

/* technology partner strip */
.vs-footer__partner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--vs-line-soft);
    border-bottom: 1px solid var(--vs-line-soft);
}

.vs-footer__partner-label {
    font-family: var(--vs-display);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--vs-footer-text);
}

body.dark-mode .vs-footer__partner-label {
    color: var(--vs-ink);
}

.vs-footer__partner-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--vs-fast) var(--vs-ease);
}

.vs-footer__partner-link:hover {
    transform: translateY(-2px);
}

.vs-footer__partner-logo {
    height: 46px;
    width: auto;
    display: block;
}

.vs-footer__partner-url {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vs-footer-dim);
}

.vs-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    font-size: 13px;
    color: var(--vs-footer-dim);
}

.vs-footer__bottom a {
    color: var(--vs-footer-dim);
}

@media (max-width: 900px) {
    .vs-footer__top {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .vs-footer__cols {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 520px) {
    .vs-footer {
        padding: 44px 0 22px;
    }

    .vs-footer__cols {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vs-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   Small-screen safety: decorative layers must never contribute
   to layout width. They are already pointer-events:none; this
   also stops them widening the page on narrow viewports.
   ============================================================ */
@media (max-width: 900px) {

    .vs-blob,
    #glow {
        max-width: 78vw;
        max-height: 78vw;
    }

    /* the ambient cursor glow adds nothing on touch devices */
    #glow {
        display: none;
    }
}
