/* Index Page Styles */

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #4facfe 50%, #00f2fe 100%);
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

/* Animated background gradient */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

/* Decorative wave overlay */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-xl);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-badge span:first-child {
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-highlight {
    background: linear-gradient(135deg, #fff 0%, #e0f7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff 0%, #e0f7ff 100%);
    border-radius: 2px;
    animation: expandWidth 0.8s ease 1.1s both;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xl);
    line-height: var(--line-height-relaxed);
    max-width: 90%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: var(--border-radius-xl);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Hero Stats */
.hero-stats {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-item span:first-child {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Keyframe Animations */
@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

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

/* Features Section */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-sky);
    color: var(--white);
    border-radius: var(--border-radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-4xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-sky);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Popular Tools Section */
.popular-tools {
    padding: var(--spacing-3xl) 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.tool-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

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

.tool-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.tool-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.tool-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

/* Blog Section */
.blog-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

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

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-date {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.blog-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.blog-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

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

.testimonial-info {
}

.testimonial-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.testimonial-rating {
    margin-top: var(--spacing-sm);
    color: #ffd93d;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-tech);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-base);
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-sky);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Feature Comparison Section */
.feature-comparison {
    padding: var(--spacing-3xl) 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    border-radius: var(--border-radius-lg);
}

.comparison-table thead {
    background: var(--gradient-sky);
    color: var(--white);
}

.comparison-table th {
    padding: var(--spacing-lg);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

.comparison-table th.feature-column {
    text-align: left;
    min-width: 200px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.column-icon {
    font-size: var(--font-size-xl);
}

.synaptool-column {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    min-width: 150px;
}

.traditional-column {
    background: rgba(102, 126, 234, 0.8);
    min-width: 150px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base);
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: var(--spacing-md) var(--spacing-lg);
}

.feature-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.check-cell {
    text-align: center;
}

.check-yes {
    color: #10b981;
    font-size: var(--font-size-xl);
    font-weight: bold;
}

.check-no {
    font-size: var(--font-size-lg);
}

.check-maybe {
    color: #f59e0b;
    font-size: var(--font-size-xl);
    font-weight: bold;
}

.price-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.price-tag-paid {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.faq-question span:nth-child(2) {
    flex: 1;
}

.faq-toggle {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--primary-color);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
    border-radius: 50%;
}

.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 var(--spacing-xl) var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .hero-image {
        order: -1;
    }

    .hero-description {
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .step-arrow {
        display: none;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    }

    .hero::after {
        height: 100px;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .stat-item {
        padding: 0.75rem 1rem;
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .stat-item span:first-child {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-image::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

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

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .faq-question {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .faq-icon {
        font-size: var(--font-size-lg);
    }

    .comparison-table th.feature-column {
        min-width: 150px;
    }

    .column-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-image::before,
    .hero-badge span:first-child {
        animation: none;
    }
}
