:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #FF4500; /* Fiery Orange */
    --secondary-color: #008080; /* Dark Teal */
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --font-family: 'Poppins', sans-serif;
    --chat-widget-bg: #2a2a2a;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* --- Header --- */
.main-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.header-tagline {
    color: var(--text-muted);
    font-weight: 600;
}

/* --- General Components & Typography --- */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}
.cta-button.primary:hover {
    background-color: #ff6347;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.cta-button.primary i, .cta-button.secondary i {
    font-size: 1.2em;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .subhead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.flow-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    background-color: var(--surface-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #444;
    font-weight: 600;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color) !important;
}
.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.feature-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}
.feature-card li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}
.feature-card li::before {
    font-family: 'bootstrap-icons';
    content: "\F28A"; /* bi-check2-circle */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}
.feature-benefit {
    font-weight: 600;
    color: var(--text-color) !important;
}

/* --- Live Demo Section --- */
.live-demo-section {
    background-color: var(--surface-color);
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.live-demo-section .section-subtext {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
}
.demo-toggles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.demo-toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.demo-toggle-btn:hover {
    background-color: rgba(0, 128, 128, 0.2);
}
.demo-toggle-btn.active {
    background-color: var(--secondary-color);
    color: white;
}
.demo-cards-container {
    position: relative;
    min-height: 420px;
}
.demo-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    border: 1px solid #333;
}
.demo-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.demo-description h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.demo-description p {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.demo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    min-height: 320px;
}
.phone-mockup {
    width: 200px;
    height: 300px;
    background: #111;
    border: 8px solid #333;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.phone-screen {
    background: #1e1e1e;
    height: 100%;
    border-radius: 12px;
    padding: 15px;
}
.sms-bubble {
    background: #3a3a3a;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}
.doc-mockup {
    background: #fff;
    color: #121212;
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    font-family: 'Courier New', Courier, monospace;
}
.doc-mockup h4 { margin-bottom: 1rem; border-bottom: 1px solid #ddd; padding-bottom: 0.5rem; }
.doc-field { margin-bottom: 0.5rem; }
.doc-flags { margin-top: 1rem; display: flex; gap: 0.5rem; }
.doc-flags .flag { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; color: white; }
.flag.urgent { background-color: var(--primary-color); }
.flag.high-value { background-color: var(--secondary-color); }
.split-mockup {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}
.split-left, .split-right { flex: 1; }
.pdf-preview {
    background: #e0e0e0;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #ccc;
}
.pdf-preview i { font-size: 3rem; color: #D94A4A; }
.email-preview {
    background: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    height: 100%;
}
.email-preview p { margin: 0; }
.email-preview p + p { margin-top: 0.5rem; }

/* --- Problems Solved Section --- */
.problems-section {
    background-color: var(--surface-color);
}
.problems-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.problems-content .section-title {
    color: var(--secondary-color);
}
.problems-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}
.problems-content li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
}
.problems-content li::before {
    font-family: 'bootstrap-icons';
    content: '\F138'; /* bi-arrow-right-short */
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-color);
}
.solution-statement {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* --- Who It's For Section --- */
.for-who-section {
    text-align: center;
}
.who-is-it-for-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.who-is-it-for-list p {
    background-color: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #444;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.who-is-it-for-list p:hover {
    transform: scale(1.05);
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.for-who-summary {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.pricing-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.price-term {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}
.pricing-card li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 25px;
}
.pricing-card li::before {
    font-family: 'bootstrap-icons';
    content: "\F26A"; /* bi-check */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}
.plan-addon {
    font-style: italic;
    color: var(--text-muted);
}

/* --- Demo Section --- */
.demo-section {
    background-color: var(--surface-color);
    text-align: center;
}
.demo-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: #0c0c0c;
    color: var(--text-muted);
    padding: 3rem 5%;
    text-align: center;
    position: relative;
}
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}
.footer-tagline {
    font-weight: 600;
    margin: 1rem 0;
}
.footer-info {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
.footer-info a {
    color: var(--secondary-color);
    text-decoration: none;
}
.footer-info a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Interactive Llama & Chat --- */
#discount-llama-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#discount-llama {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

#discount-llama.happy {
    animation: happyLlama 0.5s ease-in-out;
}

@keyframes happyLlama {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.05); }
}

#llama-food {
    width: 35px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 15px;
}

#llama-food:hover {
    transform: scale(1.15) rotate(10deg);
}

#llama-food.eaten {
    animation: feedLlama 0.5s ease-in forwards;
}

@keyframes feedLlama {
    0% {
        transform: translate(0, 0) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-40px, -20px) scale(0);
        opacity: 0;
    }
}

#discount-llama-speech-bubble {
    position: absolute;
    bottom: 110%; /* Move up slightly */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: normal; /* Allow wrapping */
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    width: 220px; /* Give it a fixed width */
    text-align: center; /* Center the text */
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

#chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #009a9a;
}
#chat-toggle-btn img {
    width: 45px;
    height: auto;
    pointer-events: none;
}

#chat-widget-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: var(--chat-widget-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: bottom right;
}

#chat-widget-container:not(.hidden) {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#chat-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}
#close-chat-btn:hover {
    opacity: 1;
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    background-color: var(--surface-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-message.assistant.typing {
    display: flex;
    align-items: center;
    gap: 5px;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

#chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
}

#chat-input {
    flex-grow: 1;
    border: none;
    background-color: #333;
    color: var(--text-color);
    padding: 10px;
    border-radius: 20px;
    outline: none;
}

#chat-send-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s ease;
}

#chat-send-btn:hover {
    color: #00b3b3;
}

.hidden {
    display: none !important;
}

.hero-content .fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.3s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.5s; }
.flow-chart-container.fade-in { animation-delay: 0.7s; }

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .header-tagline { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .demo-card { grid-template-columns: 1fr; }
    .demo-visual { min-height: 250px; }
    .demo-cards-container { min-height: 650px; }
}

@media (max-width: 600px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2rem; }
    .main-nav { flex-direction: column; gap: 1rem; }
    .nav-cta { margin-top: 0.5rem; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .flow-chart-container { flex-direction: column; align-items: stretch; }
    .flow-arrow { transform: rotate(90deg); }
    .demo-cards-container { min-height: 680px; }
}