/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: #e0e0e6;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section { padding: 120px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8B5CF6;
    margin-bottom: 16px;
}
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: #9ca3af; line-height: 1.7; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }
.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #e0e0e6;
    background: rgba(255,255,255,0.03);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.btn-chat {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.25s;
}
.btn-chat:hover { background: linear-gradient(135deg, #3B82F6, #8B5CF6); border-color: transparent; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.nav.scrolled { padding: 10px 0; background: rgba(10, 10, 15, 0.95); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo-icon { color: #8B5CF6; font-size: 18px; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 2px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* ===== STATEMENT BANNER ===== */
.statement-banner {
    padding: 3rem 0;
    margin-top: 70px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.statement-banner .container {
    max-width: 600px;
}
.statement-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 1rem;
    text-align: left;
}
.statement-banner p:last-child {
    margin-bottom: 0;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-glow {
    position: absolute;
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    filter: blur(60px);
}
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 32px;
}
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero-subtitle { font-size: 19px; color: #9ca3af; max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; }
.hero-scroll {
    position: absolute;
    bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 2px;
}
.scroll-indicator {
    width: 20px; height: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
}
.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 8px;
    background: #8B5CF6;
    border-radius: 3px;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

/* ===== SERVICES ===== */
.services { background: #0a0a0f; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    padding: 36px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.service-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.service-card p { font-size: 14px; color: #9ca3af; line-height: 1.7; }

/* ===== TEAM ===== */
.team { background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}
.team-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.team-card.featured { border-color: rgba(14, 165, 233, 0.3); }
.team-card.featured:hover { border-color: rgba(14, 165, 233, 0.5); box-shadow: 0 8px 40px rgba(14, 165, 233, 0.1); }

.team-media-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: #111118;
    overflow: hidden;
}
.team-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.team-card:hover .team-image { opacity: 0; }
.team-card.video-ended:hover .team-image { opacity: 1; }
.team-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.team-card:hover .team-video { opacity: 1; }
.team-card.video-ended:hover .team-video { opacity: 0; }
.team-avatar {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--agent-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: #fff;
    transition: all 0.5s ease;
    z-index: 2;
}
.team-card:hover .team-avatar { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
.team-status {
    position: absolute;
    top: 12px; right: 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600;
    color: #10B981;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 100px;
    z-index: 2;
}
.status-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Founder card (human, non-AI) */
.founder-card { border-color: rgba(99, 102, 241, 0.25); }
.founder-card:hover { border-color: rgba(99, 102, 241, 0.45); box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1); }
.founder-card .team-media-wrap { aspect-ratio: 3/4; }
.founder-card:hover .team-avatar { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.founder-status { color: #6366F1; }
.founder-role { color: #6366F1 !important; }
.btn-founder {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}
.btn-founder:hover {
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
    border-color: transparent !important;
}

.team-info { padding: 20px; }
.team-info h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.team-role { font-size: 13px; color: #8B5CF6; font-weight: 500; margin-bottom: 8px; display: block; }
.team-info p { font-size: 13px; color: #9ca3af; line-height: 1.6; margin-bottom: 16px; }

/* ===== ABOUT ===== */
.about { background: #0a0a0f; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.about-content .section-tag { text-align: left; }
.about-content .section-title { text-align: left; }
.about-content p { font-size: 16px; color: #9ca3af; margin-bottom: 16px; line-height: 1.7; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about-feature {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: #d1d5db;
}
.about-feature svg { color: #10B981; flex-shrink: 0; }
.about-card-stack { display: flex; flex-direction: column; gap: 20px; }
.about-stat-card {
    padding: 28px 32px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 20px;
    transition: all 0.3s;
}
.about-stat-card:hover { background: rgba(255,255,255,0.05); transform: translateX(8px); }
.about-stat-icon { font-size: 24px; }
.about-stat-num { font-size: 32px; font-weight: 800; color: #fff; }
.about-stat-text { font-size: 14px; color: #9ca3af; }

/* ===== CONTACT ===== */
.contact { background: linear-gradient(180deg, #0d0d14 0%, #0a0a0f 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-item svg { color: #8B5CF6; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 14px; color: #9ca3af; }
.contact-item a:hover { color: #8B5CF6; }
.contact-quick-chat { margin-top: 40px; }
.contact-quick-chat p { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.quick-chat-agents { display: flex; gap: 12px; }
.quick-agent {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--agent-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    transition: all 0.25s;
    cursor: pointer;
}
.quick-agent:hover { transform: scale(1.15); box-shadow: 0 4px 20px color-mix(in srgb, var(--agent-color) 40%, transparent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #e0e0e6;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.05);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: #1a1a24; color: #e0e0e6; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer { padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: #6b7280; margin-top: 12px; line-height: 1.6; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: #6b7280; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: #8B5CF6; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { font-size: 13px; color: #4b5563; }

/* ===== CHAT MODAL ===== */
.chat-modal {
    position: fixed;
    bottom: 100px; right: 24px;
    width: 400px; height: 560px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}
.chat-modal.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-modal.minimized { height: 60px; overflow: hidden; }
.chat-container {
    width: 100%; height: 100%;
    border-radius: 20px;
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chat-header {
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.chat-agent-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
}
.chat-name { font-size: 15px; font-weight: 600; color: #fff; }
.chat-role { font-size: 12px; color: #6b7280; }
.chat-header-actions { display: flex; gap: 8px; }
.chat-minimize, .chat-close {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.2s;
}
.chat-minimize:hover, .chat-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    animation: msgIn 0.3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.agent {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border-bottom-left-radius: 4px;
    color: #e0e0e6;
}
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-bottom-right-radius: 4px;
    color: #fff;
}
.chat-typing {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 13px;
    color: #6b7280;
}
.chat-typing.visible { display: flex; }
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 5px; height: 5px;
    background: #6b7280;
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.chat-input {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: #e0e0e6;
    font-size: 14px;
    outline: none;
}
.chat-input input:focus { border-color: #8B5CF6; }
#chatSend {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all 0.2s;
}
#chatSend:hover { transform: scale(1.05); }

/* Chat FAB */
.chat-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    z-index: 1500;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab.hidden { opacity: 0; visibility: hidden; transform: scale(0.8); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: #12121a;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-stats { gap: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .chat-modal { bottom: 0; right: 0; width: 100%; height: 100%; border-radius: 0; }
    .chat-container { border-radius: 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
