/* ========================================
   Accenix Landing Page - Modern Design
   Clean, professional, with subtle animations
   ======================================== */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --accent: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@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;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 500;
}

.skip-to-content:focus {
    top: 0;
}

#landing-page {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    padding: 140px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    line-height: 1.7;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    min-height: 52px;
    min-width: 140px;
    transition: all 0.25s ease;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    position: relative;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.hero-section .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Keyboard focus states */
.hero-section .btn-primary:focus-visible,
.cta-section .btn-light:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.features-header {
    margin-bottom: 4rem;
}

.features-heading {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.features-subheading {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.feature-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, #1e40af 100%);
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    line-height: 1.7;
}

.cta-section .btn-light {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    min-height: 52px;
    min-width: 140px;
    transition: all 0.25s ease;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-hover);
}

.cta-section .btn-light:active {
    transform: translateY(-1px);
}

/* ========================================
   Footer Section
   ======================================== */

.footer-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.25rem;
    }

    .hero-section p,
    .cta-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .features-heading {
        font-size: 2rem;
    }

    .features-subheading {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-section,
    .features-section,
    .cta-section {
        padding: 60px 0;
    }

    .hero-section .btn-primary,
    .cta-section .btn-light {
        width: 100%;
        max-width: 300px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   Reactive State Classes (for JS)
   ======================================== */

/* Initial state for sections before animation */
[data-reactive-section] {
    opacity: 0;
    transform: translateY(20px);
}

[data-reactive-section][data-reactive-state="visible"] {
    animation: fadeInUp 0.8s ease forwards;
}

[data-reactive-card] {
    opacity: 0;
    transform: translateY(20px);
}

[data-reactive-card][data-reactive-state="visible"] {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
