/* --- Variables --- */
:root {
    /* Colors */
    --primary: #4F46E5;        /* Indigo 600 */
    --primary-hover: #4338CA;  /* Indigo 700 */
    --primary-light: #EEF2FF;  /* Indigo 50 */
    --secondary: #818CF8;      /* Indigo 400 */
    --text-main: #111827;      /* Gray 900 */
    --text-muted: #4B5563;     /* Gray 600 */
    --text-light: #9CA3AF;     /* Gray 400 */
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;         /* Gray 50 */
    --border: #E5E7EB;         /* Gray 200 */
    --success: #10B981;        /* Emerald 500 */
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #F9FAFB;
        --text-muted: #9CA3AF;
        --bg-main: #0F172A;       /* Slate 900 */
        --bg-alt: #1E293B;        /* Slate 800 */
        --border: #334155;        /* Slate 700 */
        --primary-light: rgba(79, 70, 229, 0.15);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-ghost {
    background-color: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background-color: var(--bg-alt);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(var(--bg-main-rgb, 255, 255, 255), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    background-color: rgba(var(--bg-main-rgb, 255, 255, 255), 0.95);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background-color: rgba(15, 23, 42, 0.8);
    }
    .navbar.scrolled {
        background-color: rgba(15, 23, 42, 0.95);
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    
    .nav-links a {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-muted);
    }
    
    .nav-links a:hover {
        color: var(--primary);
    }
}

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

.nav-actions .btn {
    display: none;
}

@media (min-width: 768px) {
    .nav-actions .btn {
        display: inline-flex;
    }
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-main);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links .btn {
    margin-top: 1rem;
    border: none;
    text-align: center;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, var(--primary-light) 0%, transparent 50%);
    z-index: -1;
    opacity: 0.7;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        max-width: 600px;
    }
    
    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero p {
        margin-left: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 576px) {
    .hero-trust {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .hero-trust {
        justify-content: flex-start;
    }
}

/* Widget Mockup */
.widget-mockup {
    width: 100%;
    max-width: 380px;
    background-color: var(--bg-main);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    margin: 0 auto;
}

.widget-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.widget-avatar svg {
    width: 24px;
    height: 24px;
}

.widget-header-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.widget-header-text p {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.widget-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-alt);
}

.msg-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-in-out;
}

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

.msg-bubble.bot {
    align-self: flex-start;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0;
}

.msg-bubble.user {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 0;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    align-items: center;
    height: 20px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

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

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

.widget-input {
    padding: 1rem;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.widget-input input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--bg-alt);
    color: var(--text-main);
    transition: border-color var(--transition-fast);
}

.widget-input input:focus {
    border-color: var(--primary);
}

.widget-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.widget-input button:hover {
    background-color: var(--primary-hover);
}

.widget-input button svg {
    width: 20px;
    height: 20px;
}

.widget-input button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* --- Social Proof --- */
.social-proof {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-main);
}

.social-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-badges {
        gap: 4rem;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-icon {
    font-size: 1.5rem;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- How It Works --- */
.steps-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-flow {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 2rem;
    background-color: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 0 0 4px var(--bg-alt);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-line {
    display: none;
}

@media (min-width: 768px) {
    .step-line {
        display: block;
        flex: 0 0 50px;
        height: 2px;
        background-color: var(--border);
        margin-top: 5rem;
        position: relative;
        z-index: 1;
    }
}

/* --- Demo --- */
.demo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
    .demo-wrapper {
        flex-direction: row;
        padding: 4rem;
    }
    .demo-content {
        flex: 1;
    }
    .demo-widget {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.demo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.demo-list {
    margin-bottom: 2rem;
}

.demo-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.demo-list li::before {
    content: "💡";
}

/* --- Pricing --- */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }
}

.pricing-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.period {
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #8B5CF6); /* Indigo to Purple */
    z-index: -1;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: white;
    color: var(--primary);
    font-weight: 700;
}

.cta-btn:hover {
    background-color: var(--bg-alt);
    color: var(--primary-hover);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 576px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.link-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-muted);
}

.social-icons a:hover {
    color: var(--primary);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
