/* ===========================
   INDEX PAGE STYLES
   =========================== */

* {
    scroll-behavior: smooth;
}

/* ===========================
   HEADER NAVIGATION
   =========================== */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.btn-login {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: var(--white);
    color: var(--text-dark);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-cards-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 2;
    pointer-events: none;
}

.flip-card {
    width: 60px;
    height: 60px;
    perspective: 1000px;
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flip-card.visible {
    opacity: 1;
    transform: scale(1);
}

.flip-card.hiding {
    opacity: 0;
    transform: scale(0);
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flip-card-front img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back i {
    font-size: 32px;
}

.flip-card-back.success i {
    color: #28A745;
}

.flip-card-back.error i {
    color: #DC3545;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero .btn {
    position: relative;
    z-index: 3;
}

.social-proof {
    margin-top: 48px;
    position: relative;
    z-index: 3;
}

.user-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -8px;
    border: 3px solid var(--primary);
    font-size: 20px;
}

.social-proof-text {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
}

/* Featured Badges (ProductHunt, Uneed) - Above overlay */
.hero-badges {
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.feature-card {
    text-align: center;
    padding: 32px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary-dark);
}

/* ===========================
   ENGINE SECTION
   =========================== */

.engine-section {
    padding: 80px 0;
    background: var(--white);
}

.engine-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.engine-feature.reverse {
    direction: rtl;
}

.engine-feature.reverse > * {
    direction: ltr;
}

.engine-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-benefits {
    list-style: none;
}

.feature-benefits li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.feature-benefits i {
    color: var(--primary);
    margin-right: 12px;
}

.engine-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.visual-placeholder i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
}

.visual-placeholder p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */

.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    width: 100%;
    background: var(--white);
    padding: 32px 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-author strong {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===========================
   PRICING SECTION
   =========================== */

.pricing {
    background: var(--bg-light);
    padding: 80px 0;
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-price small {
    font-size: 18px;
    color: var(--text-gray);
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features i {
    color: var(--primary);
    margin-right: 12px;
}

.trial-notice {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 12px;
    font-style: italic;
}

/* ===========================
   FAQ SECTION
   =========================== */

.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    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 p {
    padding: 0 24px 24px 24px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */

@media (max-width: 768px) {
    /* Header Navigation */
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        background: var(--white);
        padding: 16px 0;
        border-top: 1px solid var(--border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0 80px 0;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-badges {
        margin-top: 32px;
    }
    
    .hero-badges > div {
        gap: 20px !important;
    }
    
    .hero-badges img {
        max-height: 50px !important;
    }
    
    .social-proof {
        margin-top: 32px;
    }
    
    .avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin: 0 -6px;
    }
    
    .flip-card {
        width: 50px;
        height: 50px;
    }
    
    /* Features Section */
    .features {
        padding: 60px 0;
    }
    
    .features h2, .engine-section h2, .testimonials h2, .pricing h2, .faq-section h2 {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    
    /* Engine Section */
    .engine-section {
        padding: 60px 0;
    }
    
    .engine-feature {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }
    
    .engine-feature.reverse {
        direction: ltr;
    }
    
    .engine-text h3 {
        font-size: 22px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .feature-benefits li {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .visual-placeholder {
        height: 200px;
    }
    
    .visual-placeholder i {
        font-size: 48px;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 24px;
        min-height: auto;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Pricing */
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-card {
        padding: 32px 24px;
        transform: none !important;
    }
    
    .pricing-card.featured {
        transform: none !important;
        border-width: 2px;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px) !important;
    }
    
    .pricing-card:hover {
        transform: translateY(-4px);
    }
    
    .pricing-badge {
        font-size: 12px;
        padding: 4px 16px;
    }
    
    .pricing-name {
        font-size: 20px;
    }
    
    .pricing-price {
        font-size: 36px;
    }
    
    .pricing-price small {
        font-size: 16px;
    }
    
    .pricing-features {
        margin: 24px 0;
    }
    
    .pricing-features li {
        padding: 10px 0;
        font-size: 14px;
    }
    
    /* FAQ */
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 20px 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
        padding-right: 24px;
    }
    
    .faq-answer p {
        padding: 0 16px 20px 16px;
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        padding: 32px 0;
    }
    
    footer p {
        font-size: 14px;
    }
    
    footer a {
        display: inline-block;
        margin: 8px 8px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .features h2, .engine-section h2, .testimonials h2, .pricing h2, .faq-section h2 {
        font-size: 24px;
    }
    
    .pricing-price {
        font-size: 32px;
    }
}
