@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-primary: #0012B3;
    --color-secondary: #F50025;
    --color-bg: #EDEDED;
    --color-text: #282A2A;
    --color-white: #FFFFFF;
    --color-gray-soft: #f8fafc;
    
    --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);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.header img {
    height: 32px;
    width: auto;
}

/* Hero Section */
.hero {
    padding: 100px 5% 80px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.4;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(245, 0, 37, 0.2);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 0, 37, 0.3);
    filter: brightness(1.05);
}

.cta-button:active {
    transform: translateY(0);
}

/* Demo Section */
.demo-section {
    padding: 0 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.iframe-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 900px;
}

@media (max-width: 1200px) {
    .iframe-wrapper {
        height: 75vh;
    }
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-xl) - 8px);
}

/* Value Points */
.value-grid {
    padding: 100px 5%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.value-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .value-item {
        text-align: center;
    }
}

/* Footer CTA */
.footer-cta {
    padding: 120px 5%;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
}

.footer-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    padding: 60px 5%;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Ensure it is on top */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-button {
    width: 65px;
    height: 65px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.chat-button img {
    width: 45px; /* Bigger logo */
    height: auto;
    object-fit: contain;
}

.chat-window {
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--color-primary);
    color: white;
    padding: 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #f9fafb;
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot {
    background-color: white;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
}

.chat-input-container input {
    flex: 1;
    border: 1px solid #e5e7eb;
    padding: 12px 18px;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.chat-input-container input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 18, 179, 0.1);
}

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

.chat-input-container button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.option-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 18, 179, 0.2);
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        bottom: 100px;
        right: 20px;
    }
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
}

/* Responsive visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}
