/* Variables */
:root {
    --primary: #9747FF;
    --secondary: #FF6B6B;
    --light: #F9F5FF;
    --dark: #1E0E3A;
    --gray: #7E7A86;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #7937C3 100%);
    --shadow-sm: 0 4px 10px rgba(151, 71, 255, 0.1);
    --shadow-md: 0 6px 20px rgba(151, 71, 255, 0.15);
    --shadow-lg: 0 15px 40px rgba(151, 71, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s ease;
    --body-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

p {
    margin-bottom: 1rem;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
}

.accent, .accent-text {
    color: var(--primary);
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: white;
}

.primary-btn.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.secondary-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.95rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(151, 71, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(151, 71, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(151, 71, 255, 0);
    }
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-wrapper {
    width: 42px;
    height: 42px;
    margin-right: 0.8rem;
}

.logo {
    width: 100%;
    height: 100%;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin-left: 1.8rem;
}

.nav-list a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-list a:not(.nav-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-list a:not(.nav-button):hover::after {
    width: 100%;
}

.nav-button {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 110;
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    display: block;
    margin: 6px 0;
    transition: var(--transition);
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.headline {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.stats-container {
    display: flex;
    gap: 3.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decoration-element {
    position: absolute;
    border-radius: var(--radius-lg);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(151, 71, 255, 0.05);
    top: -80px;
    right: -100px;
    transform: rotate(45deg);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 107, 0.05);
    bottom: -60px;
    right: 20%;
    transform: rotate(30deg);
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(151, 71, 255, 0.05);
    top: 40%;
    right: 10%;
    transform: rotate(60deg);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    margin-bottom: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background-color: white;
    position: relative;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 80px;
    left: 35px;
    width: 2px;
    height: calc(100% - 50px);
    background: var(--primary);
    opacity: 0.3;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--gradient);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    margin-right: 2.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--gray);
}

.center-cta {
    text-align: center;
    margin-top: 4.5rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background-color: var(--light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.testimonial {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--gray);
}

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

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-location {
    font-size: 0.9rem;
    color: var(--gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--gray);
    border-radius: 50%;
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: white;
}

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

.faq-item {
    background-color: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    flex: 1;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    font-weight: bold;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.8rem;
}

.faq-answer p {
    color: var(--gray);
}

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta .primary-btn {
    background: white;
    color: var(--primary);
    background: linear-gradient(135deg, white, #f0f0f0);
}

.final-cta .primary-btn:hover {
    background: var(--light);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 3rem;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
    margin-right: 0.8rem;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.links-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary);
    font-family: var(--body-font);
    font-weight: 700;
}

.links-group ul {
    list-style: none;
}

.links-group li {
    margin-bottom: 0.8rem;
}

.links-group a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.links-group a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.keywords {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    border: none;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .headline {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        margin: 1.2rem 0;
    }

    .nav-list a {
        font-size: 1.1rem;
    }

    .headline {
        font-size: 2.3rem;
    }

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

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 4rem;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .headline {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Additional styles for mobile menu animation */
.menu-toggle.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.no-scroll {
    overflow: hidden;
}
