/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjust */
    -ms-text-size-adjust: 100%;
}

/* Cross-browser compatibility */
@supports not (backdrop-filter: blur(8px)) {
    .navbar {
        background-color: rgba(11, 19, 36, 0.95);
    }
    
    .problem-item,
    .step-item,
    .benefit-item,
    .faq-item,
    .contact-form,
    .contact-info {
        background: rgba(11, 19, 36, 0.8);
    }
}

/* 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;
    }
    
    .fade-in-element {
        opacity: 1;
        transform: none !important;
    }
}

/* Performance: Contain layout and paint - optimize rendering */
.problem-item,
.step-item,
.benefit-item,
.faq-item,
.hero-content,
.contact-wrapper,
.section-headline {
    contain: layout style paint;
    content-visibility: auto; /* Skip rendering when off-screen */
}

/* Optimize font rendering */
body {
    font-display: swap;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0B1324;
    color: #E6E8EB;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Ambient Lighting Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 800px at 20% 30%, rgba(30, 107, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle 600px at 80% 70%, rgba(79, 209, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle 500px at 50% 50%, rgba(20, 72, 204, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

body.ambient-active::before {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: none;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    will-change: transform;
    transform: translate3d(0, 0, 0); /* GPU acceleration */
}

.navbar.navbar-hidden {
    transform: translate3d(0, -100%, 0); /* GPU acceleration */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.nav-link:hover {
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.cta-nav {
    background-color: #1E6BFF;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.cta-nav:hover {
    background-color: #1448CC;
    color: #FFFFFF;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #E6E8EB;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('herobackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 180px 0 120px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, 
        rgba(11, 19, 36, 0.5) 0%,
        rgba(11, 19, 36, 0.7) 40%,
        rgba(11, 19, 36, 0.65) 60%,
        rgba(11, 19, 36, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(11, 19, 36, 0.1) 15%,
        rgba(11, 19, 36, 0.3) 35%,
        rgba(11, 19, 36, 0.6) 60%,
        rgba(11, 19, 36, 0.85) 85%,
        #0B1324 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8), 0 3px 15px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-subheadline {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: #1E6BFF;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #1448CC;
}

.btn-primary {
    font-size: 18px;
    padding: 18px 40px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

section > .container {
    position: relative;
    z-index: 2;
}

.section-headline {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 60px;
}

/* Problem Section */
.problem {
    background-color: #0B1324;
    background-image: 
        radial-gradient(circle 1px at 2% 5%, rgba(30, 107, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle 1px at 98% 95%, rgba(79, 209, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle 1px at 50% 50%, rgba(20, 72, 204, 0.18) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    position: relative;
    margin-top: 0;
    padding-top: 100px;
    overflow: hidden;
}

.problem::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 107, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 107, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 8%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0.3) 92%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 8%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0.3) 92%,
        transparent 100%);
}

.problem-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.problem-item:nth-child(1) {
    grid-column: 1 / 3;
}

.problem-item:nth-child(2) {
    grid-column: 3 / 5;
}

.problem-item:nth-child(3) {
    grid-column: 5 / 7;
}

.problem-item:nth-child(4) {
    grid-column: 2 / 4;
}

.problem-item:nth-child(5) {
    grid-column: 4 / 6;
}

.problem-item {
    padding: 32px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.1) 0%, 
        rgba(20, 72, 204, 0.06) 50%, 
        rgba(79, 209, 255, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(30, 107, 255, 0.15);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0); /* GPU acceleration */
}

.problem-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 107, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    pointer-events: none;
    z-index: 0;
}

.problem-item.ambient-glow::after {
    opacity: 1;
}

.problem-item.ambient-glow {
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(30, 107, 255, 0.12),
        0 0 80px rgba(79, 209, 255, 0.08);
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 209, 255, 0.5), 
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problem-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 107, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    pointer-events: none;
    z-index: 0;
}

.problem-item.ambient-glow::after {
    opacity: 1;
}

.problem-item.ambient-glow {
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(30, 107, 255, 0.12),
        0 0 80px rgba(79, 209, 255, 0.08);
}

.problem-item:hover {
    transform: translate3d(0, -6px, 0) scale(1.02); /* GPU acceleration */
    border-color: rgba(30, 107, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(30, 107, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(30, 107, 255, 0.15),
        0 0 60px rgba(30, 107, 255, 0.1);
}

.problem-item.ambient-glow {
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(30, 107, 255, 0.12),
        0 0 80px rgba(79, 209, 255, 0.08);
}

.problem-item:hover::before {
    opacity: 1;
}

.problem-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.problem-item p {
    color: #E6E8EB;
    font-size: 16px;
}

/* How It Works Section */
.how-it-works {
    background-color: #0B1324;
    background-image: 
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(30, 107, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(79, 209, 255, 0.12) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle 2px at 10% 20%, rgba(30, 107, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 2px at 90% 80%, rgba(79, 209, 255, 0.28) 0%, transparent 2px),
        radial-gradient(circle 1.5px at 50% 50%, rgba(20, 72, 204, 0.3) 0%, transparent 1.5px);
    background-size: 200px 200px, 200px 200px, 150px 150px;
    opacity: 0.7;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 8%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0.3) 92%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 8%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0.3) 92%,
        transparent 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.step-item {
    text-align: center;
    padding: 42px 32px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.1) 0%, 
        rgba(20, 72, 204, 0.06) 50%, 
        rgba(79, 209, 255, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(30, 107, 255, 0.15);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 209, 255, 0.5), 
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-item:hover {
    transform: translate3d(0, -6px, 0) scale(1.02); /* GPU acceleration */
    border-color: rgba(30, 107, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(30, 107, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(30, 107, 255, 0.15);
}

.step-item:hover::before {
    opacity: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1E6BFF 0%, #4FD1FF 50%, #1448CC 100%);
    color: #FFFFFF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 auto 24px;
    box-shadow: 
        0 8px 24px rgba(30, 107, 255, 0.35),
        0 4px 12px rgba(30, 107, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0); /* GPU acceleration */
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(79, 209, 255, 0.6), 
        rgba(30, 107, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, 
         linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(30, 107, 255, 0.45),
        0 6px 16px rgba(30, 107, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.step-item:hover .step-number::before {
    opacity: 1;
}

.step-item h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.step-item p {
    color: #E6E8EB;
    font-size: 16px;
}

.how-it-works-note {
    text-align: center;
    font-size: 18px;
    color: #8A90A2;
    font-style: italic;
    margin-top: 40px;
}

/* Benefits Section */
.benefits {
    background-color: #0B1324;
    background-image: 
        radial-gradient(ellipse 50% 30% at 30% 40%, rgba(79, 209, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 70% 60%, rgba(30, 107, 255, 0.15) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(30, 107, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(79, 209, 255, 0.06) 0%, transparent 50%);
    background-size: 104px 90px, 104px 90px;
    background-position: 0 0, 52px 45px;
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
}

.benefits-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.benefits-pattern {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, transparent 40%, rgba(30, 107, 255, 0.04) 50%, transparent 60%),
        linear-gradient(-30deg, transparent 40%, rgba(30, 107, 255, 0.04) 50%, transparent 60%),
        linear-gradient(90deg, transparent 40%, rgba(79, 209, 255, 0.04) 50%, transparent 60%);
    background-size: 104px 90px;
    background-position: 0 0;
    background-repeat: repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
}

.benefits-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.benefit-item {
    padding: 32px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.1) 0%, 
        rgba(20, 72, 204, 0.06) 50%, 
        rgba(79, 209, 255, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(30, 107, 255, 0.15);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0); /* GPU acceleration */
}

.benefit-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 107, 255, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    pointer-events: none;
    z-index: 0;
}

.benefit-item.ambient-glow::after {
    opacity: 1;
}

.benefit-item.ambient-glow {
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(30, 107, 255, 0.12),
        0 0 80px rgba(79, 209, 255, 0.08);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 209, 255, 0.5), 
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-item:hover {
    transform: translate3d(0, -6px, 0) scale(1.02); /* GPU acceleration */
    border-color: rgba(30, 107, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(30, 107, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(30, 107, 255, 0.15);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.benefit-item p {
    color: #E6E8EB;
    font-size: 16px;
}

.benefits-note {
    text-align: center;
    font-size: 18px;
    color: #8A90A2;
    font-style: italic;
    margin-top: 40px;
}

/* FAQ Section */
.faq {
    background-color: #0B1324;
    position: relative;
    overflow: hidden;
}

.faq-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.faq-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.12) 0%, 
        rgba(20, 72, 204, 0.08) 50%, 
        rgba(79, 209, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(30, 107, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(30, 107, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.15) 0%, 
        rgba(79, 209, 255, 0.1) 100%);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #1E6BFF;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    padding: 0 30px;
    opacity: 0; /* Hide content when closed */
    visibility: hidden; /* Ensure content is not visible when closed */
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
    opacity: 1; /* Show content when open */
    visibility: visible; /* Make content visible when open */
}

.faq-answer p {
    color: #E6E8EB;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: #0B1324;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Ensure no gap before footer */
    padding-bottom: 0; /* Remove any extra padding */
}

.contact-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(11, 19, 36, 1) 0%,
        rgba(11, 19, 36, 0.98) 15%,
        rgba(11, 19, 36, 0.9) 35%,
        rgba(11, 19, 36, 0.7) 60%,
        rgba(11, 19, 36, 0.4) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px; /* Increased for smoother transition */
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 10%, /* Extended solid black for seamless blend */
        rgba(0, 0, 0, 0.98) 20%,
        rgba(0, 0, 0, 0.95) 35%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.7) 65%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #E6E8EB;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #1E6BFF;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.1) 0%, 
        rgba(20, 72, 204, 0.08) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(30, 107, 255, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(30, 107, 255, 0.6);
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.15) 0%, 
        rgba(79, 209, 255, 0.12) 100%);
    box-shadow: 
        0 8px 24px rgba(30, 107, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 3px rgba(30, 107, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: 10px;
    width: 100%;
}

.contact-info {
    padding: 30px;
    background: linear-gradient(135deg, 
        rgba(30, 107, 255, 0.12) 0%, 
        rgba(20, 72, 204, 0.08) 50%, 
        rgba(79, 209, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(30, 107, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(30, 107, 255, 0.1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 209, 255, 0.5), 
        transparent);
}

.contact-info h3 {
    color: #FFFFFF;
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-info p {
    color: #E6E8EB;
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-info a {
    color: #1E6BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4FD1FF;
}

.form-success {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: rgba(30, 107, 255, 0.1);
    border: 1px solid #1E6BFF;
    border-radius: 8px;
    text-align: center;
}

.form-success p {
    color: #FFFFFF;
    font-size: 18px;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: #000000;
    padding: 20px 0;
    border-top: none; /* Removed border for seamless transition */
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no gap */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px; /* Increased to match contact-fade-bottom */
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 10%, /* Extended solid black for seamless blend */
        rgba(0, 0, 0, 0.98) 20%,
        rgba(0, 0, 0, 0.95) 35%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.7) 65%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 2; /* Ensure logo is above the gradient overlay */
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    opacity: 1;
    filter: brightness(1.2) contrast(1.1); /* Enhance visibility */
    position: relative;
    z-index: 2;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-reach {
    color: #8A90A2;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-email,
.footer-phone {
    color: #E6E8EB;
    font-size: 15px;
}

.footer-email a,
.footer-phone a {
    color: #1E6BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover,
.footer-phone a:hover {
    color: #4FD1FF;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0); /* GPU acceleration */
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0); /* GPU acceleration */
    }
}

.fade-in-element {
    opacity: 0;
    transform: translate3d(0, 20px, 0); /* Simple upward movement */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* will-change only added dynamically when animating for better performance */
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-backface-visibility: hidden;
    perspective: 1000px; /* Enable 3D transforms for GPU acceleration */
    -webkit-perspective: 1000px;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important; /* Simple fade-in complete */
}

.fade-in {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster animation */
}

/* Stagger animations for grid items */
.problem-item.fade-in-element,
.step-item.fade-in-element,
.benefit-item.fade-in-element {
    transition-delay: 0s;
}

.problem-item.fade-in-element:nth-child(1) { transition-delay: 0.05s; }
.problem-item.fade-in-element:nth-child(2) { transition-delay: 0.1s; }
.problem-item.fade-in-element:nth-child(3) { transition-delay: 0.15s; }
.problem-item.fade-in-element:nth-child(4) { transition-delay: 0.2s; }
.problem-item.fade-in-element:nth-child(5) { transition-delay: 0.25s; }

.step-item.fade-in-element:nth-child(1) { transition-delay: 0.05s; }
.step-item.fade-in-element:nth-child(2) { transition-delay: 0.1s; }
.step-item.fade-in-element:nth-child(3) { transition-delay: 0.15s; }
.step-item.fade-in-element:nth-child(4) { transition-delay: 0.2s; }

.benefit-item.fade-in-element:nth-child(1) { transition-delay: 0.05s; }
.benefit-item.fade-in-element:nth-child(2) { transition-delay: 0.08s; }
.benefit-item.fade-in-element:nth-child(3) { transition-delay: 0.1s; }
.benefit-item.fade-in-element:nth-child(4) { transition-delay: 0.13s; }
.benefit-item.fade-in-element:nth-child(5) { transition-delay: 0.15s; }
.benefit-item.fade-in-element:nth-child(6) { transition-delay: 0.18s; }

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero-headline {
        font-size: 42px;
    }
    
    .hero-subheadline {
        font-size: 20px;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .problem-item:nth-child(1),
    .problem-item:nth-child(2) {
        grid-column: span 1;
    }
    
    .problem-item:nth-child(3),
    .problem-item:nth-child(4),
    .problem-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .steps-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #0B1324;
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transform: translate3d(-100%, 0, 0); /* GPU acceleration */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        will-change: transform;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0); /* GPU acceleration */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
        background-size: cover;
        background-position: center;
    }
    
    .hero::after {
        height: 150px;
    }

    .hero-headline {
        font-size: 36px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .section-headline {
        font-size: 32px;
    }

    section {
        padding: 60px 0;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .problem-item:nth-child(1),
    .problem-item:nth-child(2),
    .problem-item:nth-child(3),
    .problem-item:nth-child(4),
    .problem-item:nth-child(5) {
        grid-column: 1;
    }
    
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .section-headline {
        font-size: 26px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 16px 30px;
    }

    .problem-item,
    .step-item,
    .benefit-item {
        padding: 25px 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px; /* No bottom padding when closed */
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px; /* Add bottom padding when open */
    }

    .contact-info {
        padding: 25px 20px;
    }
}
