﻿/* ============================================================
   VSSOFT — Enterprise Healthcare SaaS Design System 2026
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Manrope', system-ui, sans-serif;
    background: #ffffff;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1:focus { outline: none; }

/* ---- Design Tokens ---- */
:root {
    --primary: #005BFF;
    --primary-light: #2F80FF;
    --primary-lighter: #4DA3FF;
    --primary-50: #EAF4FF;
    --cyan: #00C2FF;
    --surface: #F7FBFF;
    --surface-2: #EAF4FF;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 91, 255, 0.08);
}

.glass-blue {
    background: rgba(0, 91, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 91, 255, 0.15);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 91, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 91, 255, 0.06);
    padding: 12px 0;
}

.nav-link {
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
    position: relative;
    text-decoration: none;
}

.nav-link:hover { color: var(--primary); text-decoration: none; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover::after { width: 100%; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #005BFF 0%, #2F80FF 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0, 91, 255, 0.3);
    text-decoration: none !important;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 91, 255, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 91, 255, 0.25);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---- Cards ---- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 91, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 91, 255, 0.06);
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 91, 255, 0.12);
    border-color: rgba(0, 91, 255, 0.18);
}

.card-product {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(234,244,255,0.8) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 91, 255, 0.1);
    box-shadow: 0 4px 32px rgba(0, 91, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.card-product::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005BFF, #00C2FF);
    opacity: 0;
    transition: opacity var(--transition);
}

.card-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 91, 255, 0.16);
    border-color: rgba(0, 91, 255, 0.22);
}

.card-product:hover::before { opacity: 1; }

/* ---- Section Typography ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 91, 255, 0.06);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(0, 91, 255, 0.14);
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.gradient-text {
    background: linear-gradient(135deg, #005BFF 0%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #F7FBFF 0%, #EAF4FF 40%, #F0F7FF 100%);
    padding-top: 80px;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-bg-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 91, 255, 0.22) 0%, transparent 70%);
    top: -100px; right: -100px;
}

.hero-bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.18) 0%, transparent 70%);
    bottom: 100px; left: -80px;
}

.hero-grid-dot {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 91, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ---- Float Card ---- */
.float-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 91, 255, 0.12);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0, 91, 255, 0.12);
    position: absolute;
    white-space: nowrap;
}

/* ---- Statistics ---- */
.stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #005BFF 0%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Workflow ---- */
.workflow-icon {
    width: 68px; height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #005BFF, #2F80FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 91, 255, 0.22);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.workflow-step:hover .workflow-icon {
    transform: scale(1.12);
    box-shadow: 0 16px 40px rgba(0, 91, 255, 0.3);
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 91, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(0, 91, 255, 0.06);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 91, 255, 0.12);
}

/* ---- Animated Gradient ---- */
.animated-gradient {
    background: linear-gradient(270deg, #005BFF, #2F80FF, #00C2FF, #4DA3FF);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Scroll Reveal ----
   Content is ALWAYS visible (opacity:1 by default).
   When JS adds .revealed, a subtle entrance animation plays.
   No hiding mechanism — safe for Blazor SSR + hydration. ---- */

/* Base: always visible */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
}

/* When revealed by JS: play entrance animation */
.reveal.revealed {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-left.revealed {
    animation: revealLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-right.revealed {
    animation: revealRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-scale.revealed {
    animation: revealScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes revealUp {
    from { opacity: 0.01; transform: translateY(28px); }
    to   { opacity: 1;    transform: translateY(0); }
}

@keyframes revealLeft {
    from { opacity: 0.01; transform: translateX(-28px); }
    to   { opacity: 1;    transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0.01; transform: translateX(28px); }
    to   { opacity: 1;    transform: translateX(0); }
}

@keyframes revealScale {
    from { opacity: 0.01; transform: scale(0.92); }
    to   { opacity: 1;    transform: scale(1); }
}

.reveal-delay-1.revealed, .reveal-left.reveal-delay-1.revealed,
.reveal-right.reveal-delay-1.revealed, .reveal-scale.reveal-delay-1.revealed { animation-delay: 0.1s; }
.reveal-delay-2.revealed, .reveal-left.reveal-delay-2.revealed,
.reveal-right.reveal-delay-2.revealed, .reveal-scale.reveal-delay-2.revealed { animation-delay: 0.2s; }
.reveal-delay-3.revealed, .reveal-left.reveal-delay-3.revealed,
.reveal-right.reveal-delay-3.revealed, .reveal-scale.reveal-delay-3.revealed { animation-delay: 0.3s; }
.reveal-delay-4.revealed, .reveal-left.reveal-delay-4.revealed,
.reveal-right.reveal-delay-4.revealed, .reveal-scale.reveal-delay-4.revealed { animation-delay: 0.4s; }
.reveal-delay-5.revealed, .reveal-left.reveal-delay-5.revealed,
.reveal-right.reveal-delay-5.revealed, .reveal-scale.reveal-delay-5.revealed { animation-delay: 0.5s; }
.reveal-delay-6.revealed, .reveal-left.reveal-delay-6.revealed,
.reveal-right.reveal-delay-6.revealed, .reveal-scale.reveal-delay-6.revealed { animation-delay: 0.6s; }

/* ---- Float Animations ---- */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes floatX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.animate-float { animation: floatY 6s ease-in-out infinite; }
.animate-float-2 { animation: floatY 7s ease-in-out 1.5s infinite; }
.animate-float-3 { animation: floatX 5s ease-in-out infinite; }

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    padding: 96px 32px 40px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

/* ---- Footer ---- */
.footer-link {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color var(--transition);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link:hover { color: #fff; text-decoration: none; }

/* ---- Glow ---- */
.glow-blue { box-shadow: 0 0 30px rgba(0, 91, 255, 0.2), 0 0 60px rgba(0, 91, 255, 0.1); }
.glow-cyan { box-shadow: 0 0 30px rgba(0, 194, 255, 0.2), 0 0 60px rgba(0, 194, 255, 0.1); }
.icon-glow { filter: drop-shadow(0 0 12px rgba(0, 91, 255, 0.4)); }

/* ---- Pricing ---- */
.pricing-card {
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    background: #fff;
    border: 2px solid rgba(0, 91, 255, 0.08);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #005BFF 0%, #2F80FF 100%);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 24px 64px rgba(0, 91, 255, 0.32);
}

.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-4px); }

/* ---- Form ---- */
.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 91, 255, 0.12);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    transition: all var(--transition);
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.1);
    background: #fff;
}

.input-field::placeholder { color: #94a3b8; }

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue { background: rgba(0, 91, 255, 0.1); color: #005BFF; }
.badge-cyan { background: rgba(0, 194, 255, 0.1); color: #0098CC; }
.badge-green { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

/* ---- Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e8f0fe 50%, #f0f4f8 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ---- Layout Utilities ---- */
.section-pad { padding: 96px 0; }
.section-pad-lg { padding: 128px 0; }
.container-max { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

@media (min-width: 640px) { .container-max { padding: 0 40px; } }
@media (min-width: 1280px) { .container-max { padding: 0 64px; } }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #005BFF, #00C2FF);
    border-radius: 3px;
}

/* ---- Dropdown ---- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 91, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 91, 255, 0.12);
    padding: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown-trigger { position: relative; }

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: rgba(0, 91, 255, 0.06);
    color: var(--primary);
    text-decoration: none;
}

/* ---- Page Transition ---- */
.page-transition { animation: pageIn 0.4s ease-out; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Blazor Defaults ---- */
.blazor-error-boundary {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    padding: 16px;
    border-radius: 12px;
    color: #b91c1c;
}

.blazor-error-boundary::after { content: "Da xay ra loi. Vui long tai lai trang."; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #22c55e; }
.invalid { outline: 1px solid #ef4444; }
.validation-message { color: #ef4444; font-size: 0.875rem; }

/* ============================================================
   MISSING / SUPPLEMENTAL CLASSES
   ============================================================ */

/* ---- card-feature (used in WhyChooseUs, Support, Features) ---- */
.card-feature {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 91, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 91, 255, 0.06);
    padding: 32px 28px;
    transition: all var(--transition);
}

.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 91, 255, 0.12);
    border-color: rgba(0, 91, 255, 0.18);
}

/* ---- btn-ghost (used in Navbar) ---- */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none !important;
}

.btn-ghost:hover {
    background: rgba(0, 91, 255, 0.06);
    color: var(--primary) !important;
}

/* ---- Font weight utilities (Tailwind CDN doesn't include font-500..900) ---- */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* ---- hero-bg-orb standalone (pages use orb-1/orb-2 without .hero-bg-orb base) ---- */
.hero-bg-orb-1 {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 91, 255, 0.22) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    top: -100px; right: -100px;
}

.hero-bg-orb-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    bottom: 100px; left: -80px;
}

/* ---- Mobile nav link ---- */
.mobile-nav-link {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color var(--transition);
}

.mobile-nav-link:hover { color: var(--primary); }

/* ---- Responsive section padding ---- */
@media (max-width: 640px) {
    .section-pad { padding: 64px 0; }
    .section-pad-lg { padding: 80px 0; }
    .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .hero-bg-orb-1 { width: 300px; height: 300px; }
    .hero-bg-orb-2 { width: 200px; height: 200px; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .hero-section { min-height: auto; padding-top: 72px; padding-bottom: 48px; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

@media (max-width: 768px) {
    .container-max { padding: 0 20px; }
    .float-card { display: none; }
}

/* ---- Workflow step wrapper ---- */
.workflow-step {
    cursor: pointer;
    transition: all var(--transition);
}

/* ---- Overflow guard ---- */
section { overflow-x: hidden; }
