/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #FFFFFF;
    overflow-x: hidden;
    position: relative;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000 url('/static/images/background-image.jpg') center/cover;
    z-index: -2;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 29%);
    z-index: -1;
}

/* Decorative Lines */
.decorative-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.line {
    position: absolute;
    background: rgba(56, 56, 56, 0.38);
}

.line-1 {
    width: 1.6px;
    height: 2527.5px;
    left: 210px;
    top: -713px;
}

.line-2 {
    width: 1.6px;
    height: 2690px;
    left: 1209px;
    top: -163px;
}

.line-3 {
    width: 63px;
    height: 1.6px;
    left: 409px;
    top: 2px;
}

.line-4 {
    width: 29px;
    height: 1.6px;
    left: 307px;
    top: -2px;
}

.line-5 {
    width: 1px;
    height: 1023px;
    left: 869px;
    top: -48px;
    background: rgba(56, 56, 56, 0.5);
}

/* Decorative Rectangles */
.decorative-rectangles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.rectangle-group-1 {
    position: absolute;
    left: 89px;
    top: 202px;
    width: 83px;
    height: 77px;
}

.rectangle-group-2 {
    position: absolute;
    right: 457px;
    bottom: 217px;
    width: 151.32px;
    height: 214.32px;
}

.rectangle {
    position: absolute;
    border-radius: 4px;
}

.blue-rectangle-1 {
    width: 58px;
    height: 54px;
    left: 25px;
    top: 0;
    background: #7779FF;
}

.green-rectangle-1 {
    width: 25px;
    height: 23px;
    left: 0;
    top: 54px;
    background: #2DFFB3;
}

.blue-rectangle-2 {
    width: 38.32px;
    height: 38.32px;
    left: 38px;
    top: 36.42px;
    background: #7779FF;
}

.green-rectangle-2 {
    width: 38.32px;
    height: 38.32px;
    left: 0;
    top: 70px;
    background: #2DFFB3;
    border-radius: 7.66px;
}

.green-rectangle-3 {
    width: 38.32px;
    height: 38.32px;
    left: 37.52px;
    top: 176px;
    background: #2DFFB3;
    border-radius: 7.66px;
}

.green-rectangle-4 {
    width: 38.32px;
    height: 38.32px;
    left: 111px;
    top: 0;
    background: #2DFFB3;
    border-radius: 7.66px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: transparent;
    padding: 44px 65px 0;
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 712px;
}

.logo h1 {
    font-family: 'Azonix', monospace;
    font-size: 30px;
    font-weight: 400;
    line-height: 0.9em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.1em;
}

.navigation {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: 'Aldrich', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1em;
    letter-spacing: -1%;
    text-transform: uppercase;
    color: #4F4F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: #FFFFFF;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 0 65px;
}

/* FAQ Terminal Section */
.faq-terminal {
    padding: 100px 0 0;
    text-align: center;
}

.terminal-title {
    font-family: 'Aldrich', sans-serif;
    font-size: 75px;
    font-weight: 400;
    line-height: 0.9em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 40px;
}

.terminal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35em;
    letter-spacing: -3%;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px;
}

/* Chat container */
.chat-container {
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 29%);
    border: 1px dashed #FFFFFF;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 0 auto 50px;
    max-width: 937px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin-bottom: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Messages */
.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease-out;
}

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

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #7779FF;
    color: white;
    margin-right: 12px;
    order: 1;
}

.user-message .message-avatar {
    background: #2DFFB3;
    color: #000;
    margin-left: 12px;
    order: 2;
}

.message-content {
    max-width: 70%;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    order: 1;
    text-align: left;
}

.user-message .message-content {
    background: rgba(45, 255, 179, 0.1);
    border: 1px solid rgba(45, 255, 179, 0.3);
    order: 1;
    text-align: left;
}

.user-message .message-avatar {
    order: 2;
}

.message-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #FFFFFF;
    text-align: left;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 5px;
    color: #FFFFFF;
}

/* Chat input */
.chat-input-container {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.35em;
    letter-spacing: -3%;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    outline: none;
    transition: all 0.3s ease;
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#messageInput:focus {
    border-color: #2DFFB3;
    color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(45, 255, 179, 0.2);
}

.send-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #2DFFB3;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(45, 255, 179, 0.4);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

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

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

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

/* Question Chips Grid */
.question-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px auto;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.question-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35em;
    letter-spacing: -3%;
    color: rgba(255, 255, 255, 0.9);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(10px);
}

.question-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: #2DFFB3;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1B1A1A;
    margin-top: auto;
    padding: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 48px 86px 0;
    min-height: 247px;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: 'Azonix', monospace;
    font-size: 42px;
    font-weight: 400;
    line-height: 0.9em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 12px;
    letter-spacing: 0.1em;
}

.footer-brand p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.276em;
    letter-spacing: -1%;
    color: #686868;
    margin: 0 0 20px;
    max-width: 368px;
}

.powered-by {
    font-family: 'Aldrich', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 0.978em;
    text-transform: uppercase;
    color: #D9D9D9;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 72px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-group h4 {
    font-family: 'Aldrich', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 0.978em;
    text-transform: uppercase;
    color: #D9D9D9;
    margin: 0 0 10px;
}

.link-group a {
    font-family: 'Aldrich', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1em;
    letter-spacing: -1%;
    text-transform: uppercase;
    color: #4F4F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #D9D9D9;
}

/* Responsive design */
@media (max-width: 1200px) {
    .header-content {
        gap: 200px;
    }
    
    .footer-content {
        padding: 48px 40px 0;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .navigation {
        gap: 20px;
    }
    
    .main-content {
        padding: 0 20px;
    }
    
    .terminal-title {
        font-size: 50px;
        margin-bottom: 30px;
    }
    
    .faq-terminal {
        padding: 80px 0 0;
    }
    
    .chat-container {
        margin: 0 0 30px;
        padding: 15px 20px;
        height: 350px;
    }
    
    .question-chips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 600px;
    }
    
    .question-chip {
        min-width: 0;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px 0;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .terminal-title {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .faq-terminal {
        padding: 60px 0 0;
    }
    
    .terminal-subtitle {
        font-size: 16px;
    }
    
    .chat-container {
        padding: 15px;
        height: 300px;
    }
    
    .question-chips-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .question-chip {
        min-width: 0;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .navigation {
        gap: 15px;
    }
}
