/* ══════════════════════════════ */
/*   NEXUS AI — LIGHT THEME      */
/* ══════════════════════════════ */
:root {
    --primary: #0066FF;
    --primary-soft: #E8F0FE;
    --primary-hover: #0052CC;
    --accent: #00C48C;
    --accent-soft: #E6FAF2;
    --bg: #FFFFFF;
    --bg-page: #F8FAFC;
    --bg-subtle: #F1F5F9;
    --bg-hover: #E2E8F0;
    --text: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

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

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════ */
/*     NAVBAR         */
/* ══════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s;
}

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

.nav-cta {
    background: var(--text) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.25s !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

/* ══════════════════ */
/*       HERO         */
/* ══════════════════ */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-soft);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-soft);
    bottom: -50px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #FFF3E0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: var(--text);
}

.text-pop {
    position: relative;
    display: inline-block;
}

.text-pop::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 196, 140, 0.2) 100%);
    border-radius: 4px;
    z-index: -1;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
    background: var(--primary-hover);
}

.btn-ghost {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    margin-right: -8px;
    box-shadow: var(--shadow-sm);
}

/* ══════════════════ */
/*     METRICS        */
/* ══════════════════ */
.metrics {
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.metrics-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ══════════════════ */
/*     FEATURES       */
/* ══════════════════ */
.features {
    padding: 80px 24px 100px;
    background: var(--bg-page);
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-1::before {
    background: var(--primary);
}

.card-2::before {
    background: #FF6B6B;
}

.card-3::before {
    background: var(--accent);
}

.card-4::before {
    background: #F59E0B;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ══════════════════════════════ */
/*    CHATBOT WIDGET — LIGHT     */
/* ══════════════════════════════ */

/* FAB */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-fab:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 32px rgba(0, 102, 255, 0.45);
}

.fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.fab-ring {
    position: absolute;
    inset: -5px;
    border-radius: 22px;
    border: 2px solid var(--primary);
    opacity: 0.4;
    animation: ringPulse 3s infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.12);
        opacity: 0;
    }
}

.fab-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #FF3B30;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid var(--bg);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 390px;
    max-height: 580px;
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Header */
.chat-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.chat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.chat-online {
    font-size: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.chat-close {
    background: var(--bg-subtle);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chat-close:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Messages */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 320px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    background: var(--bg-page);
}

.chat-body::-webkit-scrollbar {
    width: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.message {
    max-width: 82%;
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    animation: msgIn 0.3s ease-out;
    word-wrap: break-word;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 16px 16px 16px 4px;
    box-shadow: var(--shadow-sm);
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.message.bot .msg-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Typing */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Quick Actions */
.chat-quick {
    display: flex;
    gap: 8px;
    padding: 0 20px 14px;
    flex-wrap: wrap;
    background: var(--bg-page);
}

.chat-quick button {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.chat-quick button:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Input */
.chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

#chatInput {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    outline: none;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    padding: 11px 16px;
    border-radius: 12px;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

#chatInput::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-branding {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 0 12px;
    background: var(--bg);
}

/* ══════════════════ */
/*    RESPONSIVE      */
/* ══════════════════ */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .metrics-container {
        flex-wrap: wrap;
        gap: 24px;
    }

    .metric-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .chat-window {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}