/* Sticky Header */
.header {
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom-color: #e2e8f0;
    padding: 0.75rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: fixed;
}

/* Buttons Overwrite */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 10px 20px -5px rgba(93, 95, 239, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(93, 95, 239, 0.5);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Text Gradient */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 3px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:root {
    --primary-color: #5d5fef;
    --primary-dark: #4e50d5;
    --primary-light: #7c7df2;
    --primary-gradient: linear-gradient(135deg, #5d5fef 0%, #a259ff 100%);
    --primary-gradient-subtle: linear-gradient(135deg, rgba(93, 95, 239, 0.1) 0%, rgba(162, 89, 255, 0.1) 100%);
    --text-dark: #0f172a;
    --bg-dark: #020617;
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-2xl: 0 32px 64px -16px rgba(0, 0, 0, 0.25);
}

/* Typography Overwrite */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    background: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(93, 95, 239, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-gradient-subtle);
    border: 1px solid rgba(93, 95, 239, 0.1);
    border-radius: 100px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-users {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.user-avatars {
    display: flex;
    align-items: center;
}

.user-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
}

.user-avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    margin-left: -12px;
}

.hero-visual {
    position: relative;
}

.main-card {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.4s ease;
    background: white;
}

.main-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.floating-card-1,
.floating-card-2 {
    position: absolute;
    background: white;
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 30;
    animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    left: -40px;
}

.floating-card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

/* Features */
.features {
    background: #ffffff;
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 1.25rem;
}

.feature-card-premium {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-aura {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: var(--primary-gradient-subtle);
    filter: blur(50px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-premium:hover .card-aura {
    opacity: 1;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--icon-color, var(--primary-color));
    transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-icon-box {
    background: var(--icon-color, var(--primary-color));
    color: white;
    transform: scale(1.1);
}

.feature-icon-box svg {
    width: 32px;
    height: 32px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    width: fit-content;
}

/* Trust Badges */
.trust-section {
    background: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.trust-icon {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: 0.3s;
}

.trust-item:hover .trust-icon {
    background: var(--primary-color);
    color: white;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* Steps */
.how-it-works {
    background: #f8fafc;
    padding: 10rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
}

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-visual {
    position: relative;
    margin-bottom: 2.5rem;
}

.step-num {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    border: 4px solid white;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.step-icon svg {
    width: 44px;
    height: 44px;
}

.step-connector {
    position: absolute;
    top: 50px;
    left: 100%;
    width: calc(4rem - 20px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

/* Testimonials */
.testimonials {
    padding: 10rem 0;
    background: white;
}

.premium-testimonial {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.premium-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.quote-icon {
    color: rgba(93, 95, 239, 0.1);
    margin-bottom: 2rem;
}

.testimonial-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-meta strong {
    color: #0f172a;
    font-size: 1.125rem;
}

.author-meta span {
    color: #64748b;
    font-size: 0.875rem;
}

/* CTA */
.cta-banner {
    padding: 4rem 0 8rem;
    background: white;
}

.cta-premium-card {
    background: #020617;
    border-radius: 2rem;
    padding: 5.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-2xl);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.cta-premium-card h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
}

.cta-premium-card h2 .highlight {
    color: #7c7df2;
}

.cta-premium-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-white:hover {
    border-color: white;
    background: white;
    color: #020617;
}

.cta-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 600;
}

.dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* FAQ Overwrite fix */
.faq {
    padding: 10rem 0;
    background: #ffffff;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.2s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-users {
        justify-content: center;
    }

    .visual-card {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .step-connector {
        display: none;
    }

    .cta-premium-card {
        padding: 3rem;
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .trust-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}