/* ═══════════════════════════════════════════════════════════════
   Vivalex — AI-Powered Legal Practice Management & Governance Platform
   Design: dark glassmorphism with crimson/red accent
   ═══════════════════════════════════════════════════════════════ */

:root {
    --vld-bg: #05070a;
    --vld-accent: #F3124E;
    --vld-accent-light: #ff4d7a;
    --vld-accent-hover: #d9104a;
    --vld-accent-rgb: 243, 18, 78;
    --vld-secondary: #9b062c;
    --vld-text-main: #ffffff;
    --vld-text-muted: #b0b8d0;
    --vld-card-bg: #0d0f18;
    --vld-card-border: rgba(255, 255, 255, 0.06);
    --vld-success: #10b981;
    --vld-danger: #f3124e;
}

/* ── Page Wrapper ────────────────────────────────────── */
.vivalidPage {
    background-color: var(--vld-bg);
    color: var(--vld-text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

.vivalidPage p,
.vivalidPage .lead,
.vivalidPage h1, .vivalidPage h2,
.vivalidPage h3, .vivalidPage h4 {
    color: #fff;
}

/* ── Typography ──────────────────────────────────────── */
.vld-heading {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vld-heading--sm {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.vld-heading--md {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.vld-text-accent { color: var(--vld-accent); }
.vld-text-muted  { color: var(--vld-text-muted); }

.vld-section-badge {
    display: inline-block;
    background: rgba(var(--vld-accent-rgb), 0.12);
    border: 1px solid rgba(var(--vld-accent-rgb), 0.25);
    color: var(--vld-accent-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

/* ── Buttons ─────────────────────────────────────────── */
.vld-btn-primary {
    background: linear-gradient(135deg, var(--vld-accent), var(--vld-secondary));
    color: #fff !important;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.vld-btn-primary:hover,
.vld-btn-primary:focus {
    background: linear-gradient(135deg, var(--vld-accent-hover), #003ba3);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--vld-accent-rgb), 0.35);
    text-decoration: none;
}

.vld-btn-outline {
    background: transparent;
    color: #fff !important;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.vld-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff !important;
    text-decoration: none;
}

/* ── HERO SECTION ────────────────────────────────────── */
.vldHero {
    padding: 160px 0 100px;
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 75% 20%, rgba(var(--vld-accent-rgb), 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 82, 212, 0.08) 0%, transparent 70%);
}

.vldHero__shield {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vldHero__shieldIcon {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(var(--vld-accent-rgb), 0.15) 0%, rgba(0, 82, 212, 0.08) 100%);
    border: 1px solid rgba(var(--vld-accent-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: vldPulse 4s ease-in-out infinite;
}

.vldHero__shieldIcon::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(var(--vld-accent-rgb), 0.08);
    animation: vldPulse 4s ease-in-out infinite 0.5s;
}

.vldHero__shieldIcon::after {
    content: '';
    position: absolute;
    inset: -45px;
    border-radius: 50%;
    border: 1px solid rgba(var(--vld-accent-rgb), 0.04);
    animation: vldPulse 4s ease-in-out infinite 1s;
}

.vldHero__shieldIcon svg {
    width: 120px;
    height: 120px;
    color: var(--vld-accent);
    filter: drop-shadow(0 0 30px rgba(var(--vld-accent-rgb), 0.4));
}

.vldHero__frameworks {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.vldHero__fwBadge {
    background: rgba(13, 15, 24, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--vld-accent-rgb), 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--vld-accent-light);
}

.vldHero__statRow {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.vldHero__stat {
    text-align: center;
}

.vldHero__statNum {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--vld-accent);
    line-height: 1;
}

.vldHero__statLabel {
    font-size: 0.8rem;
    color: var(--vld-text-muted);
    margin-top: 4px;
}

@keyframes vldPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.04); opacity: 0.85; }
}

/* ── Coming Soon Top Bar ─────────────────────────────── */
.vldComingSoonBar {
    position: sticky;
    top: 72px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--vld-accent);
    padding: 10px 20px;
    animation: vldBlink 1.5s ease-in-out infinite;
}

.vldComingSoonBar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vldComingSoonBar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: vldDotPulse 1.5s ease-in-out infinite;
}

.vldComingSoonBar__text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
}

@keyframes vldBlink {
    0%, 100% { opacity: 1; box-shadow: 0 4px 20px rgba(var(--vld-accent-rgb), 0.5); }
    50%      { opacity: 0.4; box-shadow: 0 4px 10px rgba(var(--vld-accent-rgb), 0.2); }
}

@keyframes vldDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.5; }
}

/* ── PAIN POINTS ─────────────────────────────────────── */
.vldPainSec {
    padding: 80px 0;
}

.vldPainGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.vldPainCard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vld-card-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.vldPainCard:hover {
    background: rgba(243, 18, 78, 0.04);
    border-color: rgba(243, 18, 78, 0.15);
    transform: translateY(-3px);
}

.vldPainCard__icon {
    flex-shrink: 0;
    font-size: 1.6rem;
    margin-top: 2px;
    line-height: 1;
}

.vldPainCard p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--vld-text-muted);
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.vldHowSec {
    padding: 100px 0;
    background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(var(--vld-accent-rgb), 0.06) 0%, transparent 70%);
}

.vldSteps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
    position: relative;
}

.vldSteps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 35px;
    bottom: 35px;
    width: 2px;
    background: linear-gradient(180deg, var(--vld-accent) 0%, rgba(var(--vld-accent-rgb), 0.1) 100%);
}

.vldStep {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 28px 0;
    position: relative;
}

.vldStep__num {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vld-accent), var(--vld-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(var(--vld-accent-rgb), 0.3);
    z-index: 2;
    position: relative;
}

.vldStep__body h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.vldStep__body p {
    color: var(--vld-text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 540px;
}

/* ── FEATURES GRID ───────────────────────────────────── */
.vldFeaturesSec {
    padding: 100px 0;
}

.vldFeatGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.vldFeatCard {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
    border: 1px solid var(--vld-card-border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.vldFeatCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vld-accent), var(--vld-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vldFeatCard:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--vld-accent-rgb), 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vldFeatCard:hover::before {
    opacity: 1;
}

.vldFeatCard__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--vld-accent), var(--vld-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #fff;
}

.vldFeatCard h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.vldFeatCard p {
    color: var(--vld-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── IDEAL FOR ───────────────────────────────────────── */
.vldIdealSec {
    padding: 100px 0;
    background: rgba(67, 100, 247, 0.03);
}

.vldIdealGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.vldIdealChip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vld-card-border);
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
}

.vldIdealChip:hover {
    background: rgba(var(--vld-accent-rgb), 0.1);
    border-color: rgba(var(--vld-accent-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.vldIdealNote {
    text-align: center;
    margin-top: 32px;
    color: var(--vld-text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── WHY CHOOSE ──────────────────────────────────────── */
.vldWhySec {
    padding: 100px 0;
}

.vldWhyGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.vldWhyCard {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--vld-card-border);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
}

.vldWhyCard:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--vld-accent-rgb), 0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.vldWhyCard__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--vld-accent-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--vld-accent-light);
}

.vldWhyCard h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.vldWhyCard p {
    color: var(--vld-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── RESULTS ─────────────────────────────────────────── */
.vldResultsSec {
    padding: 100px 0;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(var(--vld-accent-rgb), 0.06) 0%, transparent 70%);
}

.vldResultsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.vldResultItem {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--vld-card-border);
    border-radius: 16px;
    padding: 22px 28px;
    transition: all 0.3s ease;
}

.vldResultItem:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(4px);
}

.vldResultItem__check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vld-success);
}

.vldResultItem span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── FAQ ──────────────────────────────────────────────── */
.vldFaqSec {
    padding: 100px 0;
}

.vldFaqList {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vldFaqItem {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--vld-card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.vldFaqItem:hover {
    border-color: rgba(var(--vld-accent-rgb), 0.2);
}

.vldFaqItem__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 1rem;
    gap: 16px;
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    text-align: left;
}

.vldFaqItem__q svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--vld-accent);
}

.vldFaqItem.active .vldFaqItem__q svg {
    transform: rotate(180deg);
}

.vldFaqItem__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
}

.vldFaqItem.active .vldFaqItem__a {
    max-height: 300px;
    padding: 0 28px 22px;
}

.vldFaqItem__a p {
    color: var(--vld-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ── FINAL CTA ───────────────────────────────────────── */
.vldCtaSec {
    padding: 100px 0 120px;
    text-align: center;
}

.vldCtaBox {
    background: linear-gradient(135deg, rgba(var(--vld-accent-rgb), 0.12) 0%, rgba(0, 82, 212, 0.08) 100%);
    border: 1px solid rgba(var(--vld-accent-rgb), 0.15);
    border-radius: 32px;
    padding: 70px 50px;
    position: relative;
    overflow: hidden;
}

.vldCtaBox::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--vld-accent-rgb), 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.vldCtaBox p {
    color: var(--vld-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 20px auto 32px;
}

.vldCtaBox .vld-btn-primary {
    padding: 20px 44px;
    font-size: 1.05rem;
}

.vldCtaDivider {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
    color: var(--vld-text-muted);
    font-size: 0.85rem;
}

.vldCtaDivider::before,
.vldCtaDivider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.vldCtaSubtext {
    font-size: 0.9rem !important;
    color: var(--vld-text-muted) !important;
    max-width: 500px;
}

/* ── SECTION UTILITY ─────────────────────────────────── */
.vldSection {
    padding: 100px 0;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
    .vldHero {
        padding: 120px 0 60px;
    }

    .vldHero__shield {
        margin-top: 40px;
        flex-direction: column;
    }

    .vldHero__shieldIcon {
        width: 220px;
        height: 220px;
    }

    .vldHero__shieldIcon svg {
        width: 80px;
        height: 80px;
    }

    .vldHero__statRow {
        justify-content: center;
    }

    .vldHero__frameworks {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
    }

    .vldFeatGrid {
        grid-template-columns: 1fr;
    }

    .vldResultsGrid {
        grid-template-columns: 1fr;
    }

    .vldSteps::before {
        left: 22px;
    }

    .vldStep__num {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .vldStep {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .vld-heading {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .vldHero__statRow {
        gap: 24px;
        flex-wrap: wrap;
    }

    .vldCtaBox {
        padding: 40px 24px;
        border-radius: 24px;
    }
}
