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

/* --- Theme Variables & Design System --- */
:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary: #60A5FA;
    --accent: #1E40AF;
    --white: #FFFFFF;
    --dark: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--slate-700);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
}

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

button, input, textarea {
    font-family: inherit;
    outline: none;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-400);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-500);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-600);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--slate-400);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background-image: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

/* Background blob */
.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, rgba(37, 99, 235, 0.05) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: pulse-light 6s infinite ease-in-out;
}

.bot-svg-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    animation: float 4s ease-in-out infinite;
}

/* --- Chat Section --- */
.chat-section {
    background-color: var(--bg-light);
    padding-top: 4rem;
    padding-bottom: 6rem;
}

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

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--slate-500);
    font-size: 1.05rem;
}

/* Chat Console Wrapper */
.chat-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    position: relative;
}

/* Glassmorphism accent */
.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.chat-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-bot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.chat-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Emerald green */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10B981;
}

.status-text {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.chat-clear-btn {
    background: transparent;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.chat-clear-btn:hover {
    color: #EF4444; /* red */
}

/* Chat Message Box */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #FAFAFA;
}

.chat-welcome {
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
    animation: fadeInUp 0.5s ease-out;
}

.welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.welcome-desc {
    color: var(--slate-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.chip {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--slate-600);
}

.chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-1px);
}

/* Growth Report Form Styles */
.growth-form {
    margin-top: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-light);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-control {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
}

.btn-icon {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Bubble Actions (Copy/Download) */
.bubble-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary-light);
    color: var(--primary);
}

.action-btn svg {
    flex-shrink: 0;
}

/* Bubbles */
.message-bubble {
    display: flex;
    gap: 1rem;
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.message-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble.assistant {
    align-self: flex-start;
}

.bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user .bubble-avatar {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    color: var(--slate-700);
}

.assistant .bubble-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.bubble-text {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    word-break: break-word;
}

.user .bubble-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-bottom-right-radius: 2px;
}

.assistant .bubble-text {
    background: var(--white);
    color: var(--slate-800);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-light);
}

.bubble-text p {
    margin-bottom: 0.5rem;
}

.bubble-text p:last-child {
    margin-bottom: 0;
}

.bubble-text ul, .bubble-text ol {
    margin-left: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Chat Input Bar */
.chat-input-area {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--white);
}

.chat-form {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.chat-input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: var(--bg-light);
    transition: var(--transition);
    resize: none;
    height: 52px;
}

.chat-input:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chat-send-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Dots Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--slate-400);
    border-radius: 50%;
    animation: bounce-dot 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;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features flex fallback for non-grid layout */
.features-grid-sub {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Contact & Footer Section --- */
.footer {
    background-color: var(--dark);
    color: var(--slate-400);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--slate-800);
}

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

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.footer-about {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: var(--slate-800);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-light {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce-dot {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    section {
        padding: 6rem 0;
    }
    .hero-title {
        font-size: 3rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid-sub {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
        z-index: 999;
    }
    .nav-menu.open {
        left: 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .badge {
        justify-content: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-grid-sub {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .chat-container {
        height: 500px;
    }
    .chat-messages {
        padding: 1.25rem;
    }
    .chat-input-area {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .message-bubble {
        max-width: 90%;
    }
}
