:root {
    --primary-color: #de6a46;
    --primary-hover: #c55a39;
    --bg-color: #000000;
    --sidebar-bg: #121212;
    --chat-bg: #090909;
    --card-bg: #1e1e1e;
    --input-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333;
    --gradient-overlay: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: white;
}

.highlight {
    color: var(--primary-color);
}

/* --- LANDING PAGE STYLES --- */

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #050505;
    overflow: hidden;
    padding-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/shooter-banner.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mask-image: linear-gradient(to right, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent 100%);
}

/* Ensure dark overlay on top of image for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Hero Typography */
.badge {
    display: inline-block;
    background: rgba(222, 106, 70, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(222, 106, 70, 0.3);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.launch-special {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.launch-special i {
    color: var(--primary-color);
}

.launch-special span {
    color: white;
    font-weight: bold;
}

/* Animated Chat Card */
.chat-card {
    width: 380px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.bot-info {
    flex: 1;
    margin-left: 10px;
}

.bot-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.bot-status {
    font-size: 0.75rem;
    color: #4CAF50;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
}

.user-msg {
    background: #333;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.bot-msg {
    background: rgba(222, 106, 70, 0.1);
    border: 1px solid rgba(222, 106, 70, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.bot-badge {
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.source-tag {
    font-size: 0.7rem;
    color: #666;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
}

.chat-input-mock {
    padding: 15px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* Typing Animation */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0.2;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }

    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
}

/* Sections */
.sources-strip {
    padding: 60px 0;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
}

.sources-strip h3 {
    color: #666;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-card h4 {
    color: white;
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.feature-card p {
    color: #888;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 24px;
    background: rgba(222, 106, 70, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.process-section {
    padding: 100px 0;
    background: #000;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #888;
    max-width: 600px;
    margin: 0 auto 60px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #333;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    flex: 1;
    background: #000;
    padding: 0 10px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #111;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.step-item:hover .step-icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #de6a46 0%, #b84c2a 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-white:hover {
    background: #f0f0f0;
}

.small-text {
    font-size: 0.8rem;
    margin-top: 15px;
    opacity: 0.7;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
}

.faq-item {
    background: #111;
    margin-bottom: 10px;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #222;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.faq-answer {
    color: #888;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .launch-special {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-steps::before {
        display: none;
    }
}

/* --- BOT APP STYLES (Keep existing) --- */
.chat-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ... (Rest of existing Chat styles implied, but for this file replace, I included general styles.
   To be safe, I should ensure I didn't delete the .sidebar and other specific classes needed for bot.html)
   WAIT - I need to make sure I don't break bot.html.
   The previous file had specific classes for .sidebar, .brand-section, etc.
   I included .sidebar-bg in root, but I need to include the actual classes.
   I will RE-ADD the bot-specific styles from the previous read.
*/

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    padding: 20px;
}

.brand-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-text h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.brand-text span {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.new-session-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.new-session-btn:hover {
    background-color: var(--primary-hover);
}

.sidebar-menu {
    flex: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
}

.user-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.user-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
    position: relative;
    padding-bottom: 20px;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.date-separator {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 10px 0;
    background: #1e1e1e;
    padding: 4px 12px;
    border-radius: 12px;
    align-self: center;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.bot {
    align-self: flex-start;
}

.message.user .message-content {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px 12px 0 12px;
    font-size: 15px;
    line-height: 1.5;
}

.message.bot .message-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
}

.message.bot .bot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bot-avatar-small {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.formula-block {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.input-area-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.chip {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.input-container {
    background-color: var(--input-bg);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.input-container:focus-within {
    border-color: #555;
}

.upload-btn {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    outline: none;
    resize: none;
    max-height: 150px;
    padding: 5px 0;
}

.send-btn-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.send-btn-round:hover {
    opacity: 0.9;
}

.disclaimer {
    text-align: center;
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}