/* ==================== CSS Variables ==================== */
:root {
    --purple-primary: #9b88ff;
    --purple-light: #c5b9ff;
    --purple-bg: #f5f3ff;
    --orange-primary: #ffb366;
    --orange-dark: #ff9933;
    --blue-accent: #5eb3e8;
    --text-dark: #2d2d5f;
    --text-gray: #6b6b8c;
    --white: #ffffff;
    --shadow: rgba(155, 136, 255, 0.15);
    --shadow-hover: rgba(155, 136, 255, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

a {
    text-decoration: none;
    color: var(--purple-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--orange-primary);
}

/* ==================== Header & Navigation ==================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-small {
    width: 40px;
    height: 40px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--purple-primary);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--purple-bg) 0%, var(--white) 100%);
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px var(--shadow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-right h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: fit-content;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-hover);
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
}

.cta-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.features-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==================== How It Works Section ==================== */
.how-it-works-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--purple-bg) 0%, var(--white) 100%);
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.how-it-works-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-gray);
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.step h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

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

/* ==================== FAQ Section ==================== */
.faq-section {
    padding: 6rem 2rem;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--purple-primary);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==================== Final CTA Section ==================== */
.final-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.final-cta .btn-primary {
    background: var(--white);
    color: var(--purple-primary);
    margin: 0 auto;
}

.final-cta .btn-primary:hover {
    background: var(--orange-primary);
    color: var(--white);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--purple-light);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--purple-light);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--orange-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 185, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: var(--purple-light);
    font-size: 0.9rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .hero-logo {
        max-width: 250px;
        margin: 0 auto;
    }

    .cta-container {
        align-items: center;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .features-section,
    .how-it-works-section,
    .faq-section,
    .final-cta {
        padding: 3rem 1rem;
    }

    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

