/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #222222;
    background: #FFFFFF;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    padding: 1rem 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #0057A8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text h1 {
    color: #0057A8;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.tagline {
    color: #222222;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
}

.nav a:hover {
    color: #0057A8;
    background: rgba(0, 87, 168, 0.1);
    transform: translateY(-2px);
}

.nav-documents {
    background: linear-gradient(135deg, #0057A8 0%, #004080 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(0, 87, 168, 0.3);
    position: relative;
}

.nav-documents:hover {
    background: linear-gradient(135deg, #004080 0%, #003366 100%) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 20px rgba(0, 87, 168, 0.4) !important;
}

.nav-documents::before {
    content: "📄";
    margin-right: 0.5rem;
}

.language-switcher {
    display: flex;
    gap: 4px;
    background: #F0F0F0;
    border-radius: 6px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #0057A8;
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 87, 168, 0.1);
    color: #0057A8;
}

/* Buttons */
.btn-primary {
    background: #0057A8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #004080;
    box-shadow: 0 10px 30px rgba(0, 87, 168, 0.4);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

.btn-secondary {
    background: transparent;
    color: #0057A8;
    border: 2px solid #0057A8;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0057A8;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #222222;
}

.gradient-text {
    color: #0057A8;
    position: relative;
    opacity: 0; /* Initially hidden for typing effect */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0057A8;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #222222;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-chat {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 400px;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: #F0F0F0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 87, 168, 0.1);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #222222;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00C851;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
}

.user-msg {
    align-self: flex-end;
}

.user-msg .message-text {
    background: #0057A8;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 18px 18px 4px 18px;
    font-size: 0.95rem;
}

.ai-msg {
    align-self: flex-start;
}

.ai-msg .message-text {
    background: #F0F0F0;
    color: #222222;
    padding: 0.8rem 1.2rem;
    border-radius: 18px 18px 18px 4px;
    font-size: 0.95rem;
    position: relative;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0057A8;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-response-text {
    line-height: 1.4;
    display: none; /* Initially hidden until animation starts */
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #0057A8;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #0057A8;
    border-radius: 2px;
}

/* Problem Section */
.problem {
    background: #F0F0F0;
}

.problem-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 15px;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 87, 168, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0057A8;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #222222;
    font-size: 1rem;
}

.problem-description {
    text-align: center;
    font-size: 1.2rem;
    color: #222222;
    max-width: 800px;
    margin: 0 auto;
}

/* Solution Section */
.solution {
    background: #FFFFFF;
}

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

.feature {
    background: #F0F0F0;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 87, 168, 0.2);
    border-color: rgba(0, 87, 168, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0057A8;
}

.feature h3 {
    color: #0057A8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    color: #222222;
    line-height: 1.6;
}

/* Example Section */
.example {
    background: #F0F0F0;
}

.chat-example {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 600px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-content {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 15px;
    color: #222222;
    border: 1px solid rgba(0, 87, 168, 0.2);
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.message.user .message-content {
    background: #0057A8;
    color: white;
    border: 1px solid #0057A8;
    border-radius: 15px 15px 5px 15px;
}

.message.assistant .message-content {
    background: #F0F0F0;
    border: 1px solid rgba(0, 87, 168, 0.2);
    border-radius: 15px 15px 15px 5px;
}

/* Pricing Section */
.pricing {
    background: #FFFFFF;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.pricing-card {
    background: #F0F0F0;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 87, 168, 0.2);
}

.pricing-card.popular {
    background: #FFFFFF;
    border: 2px solid #0057A8;
}

.pricing-card.popular:hover {
    transform: translateY(-5px);
}

.plan-badge {
    background: rgba(0, 87, 168, 0.1);
    color: #0057A8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.popular-badge {
    background: #0057A8;
    color: white;
}

.pricing-card h3 {
    color: #0057A8;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0057A8;
    display: block;
    line-height: 1;
}

.price-period {
    display: block;
    color: #222222;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.dialogs-count {
    background: rgba(0, 87, 168, 0.1);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.dialogs-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0057A8;
    display: block;
    line-height: 1;
}

.dialogs-label {
    font-size: 0.9rem;
    color: #222222;
    opacity: 0.8;
}

.pricing-features {
    list-style: none;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: #222222;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0057A8;
    font-weight: bold;
}

.pricing-note {
    text-align: center;
    background: #F0F0F0;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 87, 168, 0.1);
}

.pricing-note p {
    color: #222222;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Team Section */
.team {
    background: #F0F0F0;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 87, 168, 0.2);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: #0057A8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 87, 168, 0.3);
}

.team-member h3 {
    color: #0057A8;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #222222;
}

/* Contact Section */
.contact {
    background: #FFFFFF;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: #0057A8;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #222222;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: #222222;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #F0F0F0;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 87, 168, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 87, 168, 0.3);
    border-radius: 10px;
    color: #222222;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0057A8;
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

/* Footer */
.footer {
    background: #F0F0F0;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 87, 168, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #0057A8;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #222222;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: #222222;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #0057A8;
    background: rgba(0, 87, 168, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 87, 168, 0.2);
}

.footer-bottom p {
    color: #222222;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #FFFFFF;
    margin: 10% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(0, 87, 168, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: #222222;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #0057A8;
    background: rgba(0, 87, 168, 0.1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #0057A8;
}

.modal-content h2 {
    color: #0057A8;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #222222;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .demo-chat {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .problem-stats {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
        text-align: center;
    }
    
    .demo-chat {
        max-width: 280px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
} 