/* =========================================================================
   VINNISOFT — Design System
   Gradient + glassmorphism theme. Palette: #0b73a8 (brand), #0c0c0a (base).
   Token-driven, reusable component classes prefixed `vs-`.
   ========================================================================= */

:root {
    /* Brand palette */
    --vs-base: #0c0c0a;
    --vs-base-2: #0e1418;
    --vs-brand: #0b73a8;
    --vs-brand-600: #0a6391;
    --vs-brand-400: #1597d6;
    --vs-brand-300: #43b3ea;

    /* Surfaces & text */
    --vs-ink: #f4f8fb;
    --vs-ink-soft: rgba(244, 248, 251, 0.72);
    --vs-ink-faint: rgba(244, 248, 251, 0.52);
    --vs-line: rgba(255, 255, 255, 0.10);

    /* Glass */
    --vs-glass-bg: rgba(255, 255, 255, 0.055);
    --vs-glass-bg-strong: rgba(255, 255, 255, 0.09);
    --vs-glass-border: rgba(255, 255, 255, 0.12);
    --vs-glass-blur: 16px;

    /* Typography */
    --vs-font: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --vs-container: 1200px;
    --vs-radius: 18px;
    --vs-radius-sm: 12px;

    /* Effects */
    --vs-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --vs-shadow-brand: 0 18px 44px rgba(11, 115, 168, 0.38);
    --vs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------- Reset --------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--vs-font);
    color: var(--vs-ink);
    background-color: var(--vs-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient gradient backdrop with slow-drifting brand glows */
.vs-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 55% at 15% 0%, rgba(11, 115, 168, 0.38) 0%, transparent 60%),
        radial-gradient(50% 50% at 90% 12%, rgba(21, 151, 214, 0.22) 0%, transparent 55%),
        radial-gradient(70% 60% at 80% 100%, rgba(11, 115, 168, 0.20) 0%, transparent 60%),
        linear-gradient(180deg, #0c0c0a 0%, #0b1116 55%, #0c0c0a 100%);
}

.vs-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
    opacity: 0.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(21, 151, 214, 0.35);
    color: #fff;
}

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--vs-brand-300);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link */
.vs-skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--vs-brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
    font-weight: 600;
}
.vs-skip:focus {
    left: 0;
}

/* ------------------------------ Layout --------------------------------- */
.vs-container {
    width: 100%;
    max-width: var(--vs-container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.vs-section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.vs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vs-brand-300);
    background: rgba(11, 115, 168, 0.14);
    border: 1px solid rgba(21, 151, 214, 0.30);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.vs-eyebrow .fa {
    font-size: 0.8rem;
}

.vs-h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}

.vs-h2 .vs-grad {
    background: linear-gradient(120deg, var(--vs-brand-300), #fff 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.vs-lead {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: var(--vs-ink-soft);
    margin: 0;
}

/* ------------------------------ Buttons -------------------------------- */
.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 14px 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--vs-ease), box-shadow 0.25s var(--vs-ease),
        background-color 0.25s var(--vs-ease), border-color 0.25s var(--vs-ease), filter 0.25s var(--vs-ease);
    will-change: transform;
}

.vs-btn .fa {
    transition: transform 0.25s var(--vs-ease);
}

.vs-btn-primary {
    background: linear-gradient(135deg, var(--vs-brand-400), var(--vs-brand-600));
    color: #fff;
    box-shadow: var(--vs-shadow-brand);
}
.vs-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 22px 50px rgba(11, 115, 168, 0.5);
}
.vs-btn-primary:hover .fa {
    transform: translateX(4px);
}

.vs-btn-ghost {
    background: var(--vs-glass-bg);
    border-color: var(--vs-glass-border);
    color: var(--vs-ink);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
}
.vs-btn-ghost:hover {
    transform: translateY(-2px);
    background: var(--vs-glass-bg-strong);
    border-color: rgba(21, 151, 214, 0.5);
}

/* ------------------------------- Glass --------------------------------- */
.vs-glass {
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    border-radius: var(--vs-radius);
}

/* =============================== HERO ================================== */
.vs-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
}

.vs-hero-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.vs-hero-gooey {
    margin: 8px auto 4px;
}

.vs-hero-title {
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 26px auto 18px;
    max-width: 16ch;
    color: #fff;
}

.vs-hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    color: var(--vs-ink-soft);
    max-width: 60ch;
    margin: 0 auto 34px;
}

.vs-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
}

/* Stats strip */
.vs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
}

.vs-stat-num {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vs-stat-num .vs-grad {
    background: linear-gradient(120deg, var(--vs-brand-300), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vs-stat-label {
    font-size: 0.82rem;
    color: var(--vs-ink-faint);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.vs-stat + .vs-stat {
    border-left: 1px solid var(--vs-line);
}

.vs-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    color: var(--vs-ink-faint);
    font-size: 1.4rem;
    animation: vs-bounce 2s infinite;
}

@keyframes vs-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 9px); }
}

/* ========================== CAPABILITIES ============================== */
.vs-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.vs-cap-card {
    padding: 32px 28px;
    border-radius: var(--vs-radius);
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--vs-ease), border-color 0.4s var(--vs-ease), background-color 0.4s var(--vs-ease);
}

.vs-cap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 0% 0%, rgba(11, 115, 168, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--vs-ease);
}

.vs-cap-card:hover {
    transform: translateY(-8px);
    border-color: rgba(21, 151, 214, 0.45);
    background: var(--vs-glass-bg-strong);
}
.vs-cap-card:hover::before {
    opacity: 1;
}

.vs-cap-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--vs-brand-400), var(--vs-brand-600));
    box-shadow: var(--vs-shadow-brand);
    margin-bottom: 20px;
}

.vs-cap-title {
    position: relative;
    font-size: 1.22rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.vs-cap-text {
    position: relative;
    color: var(--vs-ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================== FOOTER ================================ */
.vs-footer {
    position: relative;
    border-top: 1px solid var(--vs-line);
    padding: 70px 0 30px;
    background: linear-gradient(180deg, transparent, rgba(11, 115, 168, 0.08));
}

.vs-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.vs-footer-brand img {
    height: 30px;
    margin-bottom: 18px;
}

.vs-footer-brand p {
    color: var(--vs-ink-soft);
    max-width: 38ch;
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.vs-footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
    margin: 0 0 18px;
}

.vs-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.vs-footer-col a {
    color: var(--vs-ink-soft);
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.vs-footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.vs-social {
    display: flex;
    gap: 12px;
}

.vs-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    color: var(--vs-ink-soft);
    transition: transform 0.25s var(--vs-ease), background-color 0.25s var(--vs-ease), color 0.25s var(--vs-ease);
}
.vs-social a:hover {
    transform: translateY(-3px);
    background: var(--vs-brand);
    color: #fff;
    border-color: var(--vs-brand);
}

.vs-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: space-between;
    padding-top: 26px;
    border-top: 1px solid var(--vs-line);
    color: var(--vs-ink-faint);
    font-size: 0.88rem;
}

/* ------------------------- Reveal animations --------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--vs-ease), transform 0.7s var(--vs-ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 860px) {
    .vs-section { padding: 80px 0; }
    .vs-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .vs-stats { grid-template-columns: repeat(2, 1fr); }
    .vs-stat:nth-child(3) { border-left: none; }
    .vs-stat:nth-child(odd) { border-left: none; }
}

@media (max-width: 520px) {
    .vs-container { padding: 0 18px; }
    .vs-hero { padding: 120px 0 70px; }
    .vs-hero-cta { flex-direction: column; }
    .vs-hero-cta .vs-btn { width: 100%; }
}

/* --------------------------- Reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
