:root {
    --primary-color: #5A67D8; /* Indigo */
    --secondary-color: #EBF4FF; /* Light Blue */
    --accent-color: #805AD5; /* Purple */
    --dark-color: #1A202C;
    --light-color: #FFFFFF;
    --text-color: #4A5568;
    --font-family: 'Inter', sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
}

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

/* --- Utilities --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #4C51BF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #718096;
    text-align: center;
}

section {
    padding: 90px 0;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* --- Header & Navbar --- */
.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--light-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--light-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-color);
    padding: 180px 0 120px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-form {
    display: flex;
    gap: 10px;
}

.hero-form input {
    flex-grow: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
}

/* --- How It Works --- */
.how-it-works {
    background-color: #F7FAFC;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-icon {
    margin-bottom: 20px;
    height: 80px;
}

.step-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* --- Use Cases --- */
.use-case-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.use-case-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.use-case-img {
    width: 100%;
    margin-bottom: 20px;
}

.use-case-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.use-case-card ul {
    list-style-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM8 15L3 10L4.41 8.59L8 12.17L15.59 4.58L17 6L8 15Z" fill="%235A67D8"/></svg>');
    padding-left: 30px;
}

.use-case-card ul li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* --- Testimonials --- */
.testimonials {
    background-color: #F7FAFC;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-author span {
    color: #718096;
}

/* --- CTA Split Section --- */
.cta-split-section {
    background-color: var(--light-color);
}

.cta-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.cta-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.cta-card p {
    margin-bottom: 30px;
    flex-grow: 1;
}

.n8n-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.n8n-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid #CBD5E0;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.n8n-form .btn {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: #EDF2F7;
    padding: 60px 0 30px 0;
}

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

.footer-about h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a, .footer-social a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.footer-links ul li a:hover, .footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #CBD5E0;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* --- Live Demo Chat Widget --- */
.chat-widget-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-widget-trigger:hover {
    transform: scale(1.1);
}

.chat-widget-trigger svg {
    width: 32px;
    height: 32px;
}

.chat-widget-popup {
    position: fixed;
    bottom: 95px;
    right: 20px;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 998;
    pointer-events: none;
}

.chat-widget-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-widget-popup-arrow {
    position: absolute;
    bottom: -5px;
    right: 25px;
    width: 10px;
    height: 10px;
    background-color: var(--dark-color);
    transform: rotate(45deg);
}

.chat-widget-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--light-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    transform-origin: bottom right;
}

.chat-widget-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--light-color);
    flex-shrink: 0;
}

.chat-widget-header h3 {
    font-size: 1.1rem;
}

#close-chat {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-widget-body {
    flex-grow: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content, .use-case-columns, .testimonial-grid, .cta-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .hero-content { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-form { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .header .btn-secondary { display: none; }
    section h2 { font-size: 2.2rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .chat-widget-window { 
        width: calc(100vw - 20px); 
        height: calc(100vh - 80px);
        bottom: 10px;
        right: 10px;
    }
    .chat-widget-trigger {
        bottom: 10px;
        right: 10px;
    }
    .chat-widget-popup {
        bottom: 80px;
        right: 10px;
    }
}