/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* Text Balance */
.text-balance {
    text-wrap: balance;
}

/* Navigation Styles */
.nav-blur {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Feature Card Hover */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

/* Icon Container */
.icon-container {
    transition: background-color 0.2s ease;
}

/* Button Styles */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Details/Summary Styles */
details {
    transition: border-color 0.2s ease;
}

details[open] summary {
    margin-bottom: 1rem;
}

summary {
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Stats Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Pricing Card */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* QR Code Container */
.qr-code-container {
    transition: transform 0.2s ease;
}

.qr-code-container:hover {
    transform: scale(1.05);
}

/* Mobile Menu (if needed in future) */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility Classes */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Hero Image Shadow */
.hero-image-shadow {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Section Spacing */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Grid Gap Responsive */
.grid-responsive {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-responsive {
        gap: 2rem;
    }
}

/* Typography Scale */
.heading-xl {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

@media (min-width: 640px) {
    .heading-xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .heading-xl {
        font-size: 3.75rem;
    }
}

.heading-lg {
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 700;
}

@media (min-width: 640px) {
    .heading-lg {
        font-size: 2.25rem;
    }
}

/* Link Hover Effect */
.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.2s ease;
}

.link-hover:hover::after {
    width: 100%;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}


/* Scroll Reveal Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.animate-delay-100 {
    transition-delay: 0.1s;
}

.animate-delay-200 {
    transition-delay: 0.2s;
}

.animate-delay-300 {
    transition-delay: 0.3s;
}

.animate-delay-400 {
    transition-delay: 0.4s;
}

.animate-delay-500 {
    transition-delay: 0.5s;
}

.animate-delay-600 {
    transition-delay: 0.6s;
}

/* Alert/Notice Box */
.alert-box {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.alert-info {
    background-color: #EFF6FF;
    border-color: #2563EB;
}

.alert-warning {
    background-color: #FEF3C7;
    border-color: #F59E0B;
}

/* Code Block */
.code-block {
    background-color: #1E293B;
    color: #E2E8F0;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Step Number Circle */
.step-circle {
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
