/* Index Page Specific Styles */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(55, 163, 84, 0.1);
    border: 1px solid rgba(55, 163, 84, 0.3);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem; /* Larger, more impactful */
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-light);
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(135deg, #00E676, #00BFA5, #FFD54F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Chat Widget Styles */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.chat-widget {
    width: 100%;
    max-width: 420px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(21, 26, 40, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-card);
    padding: 2px;
    margin-right: 16px;
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 15px var(--primary-green-glow);
}

.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.online-status {
    font-size: 0.85rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.online-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green-glow);
}

.reset-chat {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-chat:hover {
    color: var(--accent-gold);
    background: rgba(255, 213, 79, 0.1);
    border-color: var(--accent-gold);
    transform: rotate(180deg);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-message {
    max-width: 88%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

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

.chat-message.bot {
    align-self: flex-start;
    background: rgba(21, 26, 40, 0.9);
    color: var(--text-light);
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-green), #00BFA5);
    color: #06090F;
    font-weight: 500;
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 20px var(--primary-green-glow);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-option-btn {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--primary-green);
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-option-btn:hover {
    background: var(--primary-green);
    color: #06090F;
    box-shadow: 0 4px 15px var(--primary-green-glow);
    transform: translateY(-2px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(21, 26, 40, 0.6);
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    margin-bottom: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.4;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-area {
    padding: 16px 24px 24px;
    background: rgba(21, 26, 40, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(6, 9, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 14px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-area input:focus {
    border-color: var(--primary-green);
    background: rgba(6, 9, 15, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #00BFA5);
    border: none;
    color: #06090F;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--primary-green-glow);
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.1);
}

.btn-send:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: not-allowed;
}

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

/* Background Grid */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(55, 163, 84, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(55, 163, 84, 0.1);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 0 20px var(--primary-green-glow);
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Trust Section */
.trust-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
}

.trust-logos span {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.trust-logos span:hover {
    opacity: 1;
    color: var(--text-light);
}

/* How it works (Timeline) */
.how-it-works-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(55, 163, 84, 0.3);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-green-glow);
    flex-shrink: 0;
}

.timeline-content {
    margin-left: 30px;
    padding: 25px;
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    padding: 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card.premium {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(216, 178, 72, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-card ul {
    text-align: left;
    margin-bottom: 30px;
}

.price-card ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.price-card ul li i {
    color: var(--primary-green);
    margin-right: 10px;
}

.price-card .btn {
    width: 100%;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    padding: 30px;
}

.stars {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.review-card h4 {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }

    .chat-widget {
        max-width: 100%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links {
        display: none; /* Hide standard nav on mobile for simplicity, or make it a burger */
    }

    .header-actions {
        margin-left: auto;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .chat-widget {
        height: 600px; /* Give more height on mobile so keyboard doesn't squish it too much */
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

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

    .header-actions .btn-outline {
        display: none; /* Only show primary CTA on very small screens */
    }

    .chat-header {
        padding: 10px 15px;
    }

    .chat-input-area {
        padding: 10px 15px;
    }
}
