/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 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);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    color: var(--dark);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title-lg {
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-subtitle-gray {
    color: var(--gray);
    margin-bottom: 24px;
    text-align: center;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* CTA Buttons */
.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: var(--gray);
}

.cta-btn-secondary:hover {
    background: #475569;
}

.cta-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 36px;
    font-size: 1.125rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-content {
    padding: 24px;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.blog-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* Article */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.mt-5 { margin-top: 48px; }
.mt-40 { margin-top: 40px; }
.mt-80 { margin-top: 80px; }

.no-underline { text-decoration: none; }

.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-content p {
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 24px;
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

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

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--gray);
    line-height: 1.7;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.testimonial-author {
    margin-top: 16px;
    font-weight: 600;
}

/* Mobile menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 99;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    font-size: 1.125rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    nav ul {
        gap: 0;
    }

    .cta-floating {
        bottom: 20px;
        right: 20px;
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 100px;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.text-section {
    background: #f1f5f9;
    padding: 80px 0;
}
.text-section .container {
    max-width: 800px;
}
.text-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}
.text-section p {
    color: var(--gray);
    margin-bottom: 24px;
}
.bg-gradient-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 48px;
}
.bg-gradient-cta h3 {
    color: white;
    margin-bottom: 16px;
}
.bg-gradient-cta p {
    opacity: 0.9;
    margin-bottom: 24px;
}
.alert-box {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 12px;
    margin-top: 48px;
}
.alert-box h3 {
    margin-bottom: 16px;
}
.center-cta-group {
    text-align: center;
    margin: 32px 0;
}

.cta-buttons-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mb-text {
    margin-bottom: 16px;
    text-align: center;
}
.center-cta-group .cta-btn {
    margin: 8px;
}
