/* ===== TrueDigi Crystal Motion Design System ===== */

/* Base */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f9f9f9;
    color: #1a1c1c;
    overflow-x: hidden;
}

.font-headline { font-family: 'Lexend', sans-serif; }

/* Material Icons Fix */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* ===== Crystal Gradients & Glass ===== */
.crystal-gradient {
    background: linear-gradient(135deg, #5f3add 0%, #7857f8 100%);
}

.text-gradient {
    background: linear-gradient(to right, #5f3add, #b70b67);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Hero Shape ===== */
.hero-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* ===== Marquee ===== */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Hover Effects ===== */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.hover-scale:hover {
    transform: scale(1.02);
}

/* ===== Navigation Links ===== */
.nav-link {
    color: #64748b;
    font-weight: 500;
    font-family: 'Be Vietnam Pro', sans-serif;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding-bottom: 4px;
}
.nav-link:hover {
    color: #7C5CFC;
}
.nav-link.active {
    color: #7C5CFC;
    font-weight: 700;
    border-bottom: 2px solid #7C5CFC;
}

.nav-link-mobile {
    color: #64748b;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.3s ease;
}
.nav-link-mobile:hover,
.nav-link-mobile.active {
    color: #7C5CFC;
    font-weight: 700;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
    opacity: 0;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Floating Label Input ===== */
.floating-label-input:focus-within label,
.floating-label-input input:not(:placeholder-shown) + label,
.floating-label-input textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #5f3add;
}

/* ===== Comparison Table ===== */
.comparison-table tr:hover td {
    background-color: rgba(95, 58, 221, 0.02);
}

/* ===== Bento Grid Gradient ===== */
.bento-gradient-1 {
    background: linear-gradient(135deg, #5f3add 0%, #7857f8 100%);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f3f4;
}
::-webkit-scrollbar-thumb {
    background: #c9c4d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7C5CFC;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-shape {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===== Selection ===== */
::selection {
    background-color: #e6deff;
    color: #5f3add;
}
