/* Metix Website Styles - v1.0 */

/* Base Styles */
body {
    background-color: #F8FAFC;
    color: #0F172A;
}

/* Glass Panel Effect (Acrylic/Frosted Glass) */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Subtle Grid Background */
.lab-grid {
    background-color: #F8FAFC;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(203, 213, 225, 0.4) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* 3D Float Animation on Hover */
.float-3d {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.float-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

/* Shimmer Effect on Buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn-shimmer:hover::after {
    left: 100%;
    transition: 0.7s ease-in-out;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.toast-success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.toast-info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOut 0.3s ease-in forwards;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.form-group {
    margin-bottom: 20px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #64748B;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563EB;
}

/* Loading State for Buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #E2E8F0;
    padding: 20px;
    z-index: 40;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    display: block;
    transform: translateY(0);
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #0F172A;
    font-weight: 500;
    border-bottom: 1px solid #F1F5F9;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Accordion Styles (for FAQ) */
details {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}

details summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-size: 20px;
    color: #64748B;
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '-';
}

details[open] summary {
    border-bottom: 1px solid #E2E8F0;
}

details > div {
    padding: 16px 20px;
    color: #64748B;
    line-height: 1.6;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #E2E8F0;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active {
    background: #2563EB;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* Link Hover Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563EB;
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Feature Card Hover */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.1);
}

/* Pricing Card Highlight */
.pricing-card-featured {
    position: relative;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    border-radius: 18px;
    z-index: -1;
}

/* Scroll Animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Background */
.hero-gradient {
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

/* Legal Pages Typography */
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0F172A;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #475569;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #475569;
}

/* Version Badge */
.version-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 2px 6px;
    background: #F1F5F9;
    border-radius: 4px;
    color: #64748B;
}
