/* Home Page Specific Styles */

/* Hero Section */
.hero {
    padding: 140px;
    background: var(--background);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0.4;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--text);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-description {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
    margin-bottom: 32px;
}

.hero-note {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;   
    animation: fadeInUp 1s ease-out 0.8s both;
    text-align: center;

}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.4s both;
}

/* Browser Preview */
.browser-preview {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px var(--border),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    width: 480px;
    position: relative;
}


.browser-header {
    background: var(--surface-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.browser-dots span:nth-child(1) { 
    background: #ff5f57;
    animation: pulse 3s ease-in-out infinite;
}
.browser-dots span:nth-child(2) { 
    background: #ffbd2e;
    animation: pulse 3s ease-in-out infinite 0.3s;
}
.browser-dots span:nth-child(3) { 
    background: var(--primary);
    animation: pulse 3s ease-in-out infinite 0.6s;
}

.browser-url {
    background: var(--background);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-light);
    flex: 1;
    border: 1px solid var(--border);
    font-family: 'Monaco', 'Menlo', monospace;
}

.browser-content {
    padding: 40px 32px;
    height: 280px;
    position: relative;
    background: var(--surface);
}

/* Floating Assistant - No hover color changes */
.floating-assistant {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: #1e1e1e;
    border: 2px solid #191818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    animation: float 4s ease-in-out infinite;
    font-size: 20px;
}

.floating-assistant:hover {
    transform: scale(1.05) translateY(-2px);
    /* Removed all color changes - keeps original dark styling */
}

.floating-assistant:active {
    transform: scale(1.02) translateY(-1px);
}

.ai-btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: none;
    /* Removed all hover effects */
}

/* Chat Interface - Much smaller */
.chat-interface {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 160px;
    height: 180px;
    background: #191818;
    border: 1px solid #333;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    overflow: hidden;
}

.chat-interface.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #191818;
    border-bottom: 1px solid #333;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 24px;
}

.chat-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.chat-close {
    background: none;
    border: none;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 3px;
    transition: all 0.2s ease;
    line-height: 1;
}

.chat-close:hover {
    background: #333;
    color: white;
}

/* Messages area */
.chat-messages {
    flex: 1;
    padding: 8px;
    overflow: hidden;
    background: #191818;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: messageSlideIn 0.4s ease-out;
}

/* Hide avatar */
.message-avatar {
    display: none;
}

/* Message content */
.message-content {
    flex: 1;
    background: #000000;
    padding: 16px;
    border-radius: 0 16px 16px 16px;
    position: relative;
}

.message-content p {
    margin: 0 0 4px 0;
    font-size: 9px;
    line-height: 1.2;
    color: #e0e0e0;
}

.message-content p:first-child {
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.message-content p:last-child {
    margin-bottom: 4px;
}

.message-content strong {
    color: #4ade80;
    font-weight: 600;
}

/* Install button */
.install-btn {
    background: #2A2A2A;
    color: white;
    border: 1px solid #404040;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.install-btn:hover {
    background: #333;
    border-color: #555;
    transform: translateY(-1px);
}

.install-btn:active {
    transform: translateY(0);
}

/* Remove input area to make it smaller */
.chat-input-area {
    display: none;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 2px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #121212;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 1px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - even smaller on mobile */
@media (max-width: 768px) {
    .chat-interface {
        width: 140px;
        height: 160px;
        right: 16px;
        bottom: 70px;
        font-size: 9px;
    }
    
    .floating-assistant {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ai-btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .chat-messages {
        padding: 6px;
    }
    
    .message-content {
        padding: 6px;
    }
    
    .install-btn {
        padding: 3px 5px;
        font-size: 7px;
    }
    
    .message-content p {
        font-size: 8px;
    }
    
    .message-content p:first-child {
        font-size: 9px;
    }
    
    .chat-title {
        font-size: 8px;
    }
}

/* Platform Support Section */
.platform-support {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--border),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    animation: fadeInRight 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.platform-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.05), transparent);
    transition: left 1s ease;
}

.platform-support:hover::before {
    left: 100%;
}

.platform-support:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 50px rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
}

.platform-support h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text);
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
}

.platform-support h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
}

.platform-list {
    display: grid;
    gap: 24px;
}

.platform-category {
    background: var(--background);
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.platform-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.platform-category:hover::before {
    transform: scaleY(1);
}

.platform-category:hover {
    transform: translateY(-4px) translateX(8px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

.platform-category h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.platform-category p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Enhanced animation for platform categories */
.platform-category:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.platform-category:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.platform-category:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.platform-category:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Detailed Features */
.features-detailed {
    padding: 120px 0;
    background: var(--background);
}

.detailed-features {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-detail {
    background: var(--surface);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-elastic);
    animation: scaleIn 0.8s ease-out;
}

.feature-detail:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-detail:nth-child(1) { animation-delay: 0.1s; }
.feature-detail:nth-child(2) { animation-delay: 0.2s; }
.feature-detail:nth-child(3) { animation-delay: 0.3s; }

.feature-detail h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.feature-detail p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta .btn-primary:hover {
    background: var(--surface);
    transform: translateY(-6px) scale(1.05);
}

.cta-note {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Chat Interface in Browser Preview */
.chat-interface {
    position: absolute;
    bottom: 20px;
    right: 24px;
    width: 222px;
    height: 240px;
    background: #191818;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.chat-interface.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1E1E1E;
    color: white;
    border-bottom: 1px solid #ffffff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.chat-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}


.chat-messages {
    padding: 20px;
    height: calc(100% - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: messageSlideIn 0.4s ease-out;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.message-content {
    flex: 1;
    background: #191818;
    padding: 16px;
    border-radius: 0 16px 16px 16px;
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: var(--border);
}

.message-content::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 12px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: var(--surface);
}

.message-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #e7eaee;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    color: #4ade80;
    font-weight: 600;
}

.install-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.install-btn:hover::before {
    left: 100%;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    filter: brightness(1.1);
}

.install-btn:active {
    transform: translateY(0);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .detailed-features {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .browser-preview {
        width: 100%;
        max-width: 400px;
    }
    
    .chat-interface {
        width: 280px;
        right: 16px;
    }
    
    .chat-messages {
        max-height: 150px;
        padding: 16px;
    }
    
    .message-content {
        padding: 12px;
    }
    
    .install-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .browser-preview {
        width: 100%;
        max-width: 400px;
    }
    
    .chat-interface {
        width: 230px;
        right: 12px;
    }
    
    .chat-messages {
        max-height: 150px;
        padding: 16px;
    }
    
    .message-content {
        padding: 12px;
    }
    
    .install-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}
