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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-chat: #16162a;
    --accent-1: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-3: #fd79a8;
    --accent-4: #00cec9;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a8;
    --text-muted: #55557a;
    --border: rgba(108, 92, 231, 0.15);
    --glow: rgba(108, 92, 231, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === Animated Background === */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-mesh::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(253, 121, 168, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(0, 206, 201, 0.05) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite alternate;
}
@keyframes meshMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(3deg); }
}

/* === Grid Lines === */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}
.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.logo-text span {
    color: var(--accent-2);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.nav-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.nav-btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}
.nav-btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.nav-btn-primary {
    background: linear-gradient(135deg, var(--accent-1), #8b5cf6);
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}
.nav-btn-primary:hover {
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
    transform: translateY(-1px);
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(108, 92, 231, 0.08);
    font-size: 0.8rem;
    color: var(--accent-2);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 206, 201, 0); }
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.btn {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 25px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover {
    border-color: var(--accent-2);
    background: rgba(108, 92, 231, 0.08);
}

/* === Chat Demo === */
.chat-demo {
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.chat-window {
    background: var(--bg-chat);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(108, 92, 231, 0.1);
}
.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.02);
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.chat-header-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}
.chat-header-info p {
    font-size: 0.75rem;
    color: var(--accent-4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.chat-header-info p::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-4);
}
.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
}
.msg {
    max-width: 85%;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: msgSlide 0.5s ease both;
}
.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-1), #8b5cf6);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-ai {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}
.msg-ai .msg-label {
    font-size: 0.7rem;
    color: var(--accent-3);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.msg-time {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
    text-align: right;
}
.msg-ai .msg-time {
    text-align: left;
    color: var(--text-muted);
}
@keyframes msgSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg:nth-child(1) { animation-delay: 0.6s; }
.msg:nth-child(2) { animation-delay: 1.2s; }
.msg:nth-child(3) { animation-delay: 1.8s; }
.msg:nth-child(4) { animation-delay: 2.4s; }
.msg:nth-child(5) { animation-delay: 3s; }
.msg:nth-child(6) { animation-delay: 3.6s; }

/* Voice note */
.voice-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
}
.voice-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.voice-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}
.voice-bar {
    width: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.4);
    animation: waveAnim 1.2s ease-in-out infinite alternate;
}
.msg-ai .voice-bar { background: var(--accent-2); }
.voice-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.voice-bar:nth-child(4) { height: 20px; animation-delay: 0.05s; }
.voice-bar:nth-child(5) { height: 14px; animation-delay: 0.15s; }
.voice-bar:nth-child(6) { height: 22px; animation-delay: 0.08s; }
.voice-bar:nth-child(7) { height: 12px; animation-delay: 0.18s; }
.voice-bar:nth-child(8) { height: 18px; animation-delay: 0.03s; }
.voice-bar:nth-child(9) { height: 8px; animation-delay: 0.12s; }
.voice-bar:nth-child(10) { height: 15px; animation-delay: 0.07s; }
.voice-bar:nth-child(11) { height: 10px; animation-delay: 0.2s; }
.voice-bar:nth-child(12) { height: 18px; animation-delay: 0.02s; }
@keyframes waveAnim {
    0% { transform: scaleY(0.6); }
    100% { transform: scaleY(1); }
}
.voice-duration {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    min-width: 32px;
}
.msg-ai .voice-duration { color: var(--text-muted); }

/* Image message */
.msg-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 0.4rem;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.msg-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.msg-image-placeholder svg {
    opacity: 0.5;
}

/* Input toolbar buttons */
.chat-toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.chat-toolbar-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--accent-1);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1.1rem;
    align-self: flex-start;
    animation: msgSlide 0.5s ease 4.2s both;
}
.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(255,255,255,0.02);
}
.chat-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-1), #8b5cf6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Glow ring behind chat */
.chat-demo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* === Features === */
.features {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}
.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-2);
    text-align: center;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 3.5rem;
    font-size: 1.05rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}
.feature-icon-1 { background: rgba(108, 92, 231, 0.15); }
.feature-icon-2 { background: rgba(253, 121, 168, 0.15); }
.feature-icon-3 { background: rgba(0, 206, 201, 0.15); }
.feature-icon-4 { background: rgba(162, 155, 254, 0.15); }
.feature-icon-5 { background: rgba(255, 183, 77, 0.15); }
.feature-icon-6 { background: rgba(129, 236, 236, 0.15); }
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Stats === */
.stats {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}
.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === CTA === */
.cta {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    text-align: center;
}
.cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.05));
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-3), transparent);
}
.cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}
.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* === Floating particles === */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.particle-1 {
    width: 4px; height: 4px;
    top: 20%; left: 10%;
    background: var(--accent-1);
    opacity: 0.3;
    animation: floatParticle 8s ease-in-out infinite;
}
.particle-2 {
    width: 3px; height: 3px;
    top: 60%; left: 85%;
    background: var(--accent-3);
    opacity: 0.25;
    animation: floatParticle 10s ease-in-out infinite reverse;
}
.particle-3 {
    width: 5px; height: 5px;
    top: 40%; left: 50%;
    background: var(--accent-4);
    opacity: 0.2;
    animation: floatParticle 12s ease-in-out infinite;
}
.particle-4 {
    width: 3px; height: 3px;
    top: 80%; left: 30%;
    background: var(--accent-2);
    opacity: 0.2;
    animation: floatParticle 9s ease-in-out infinite reverse;
}
@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-15px, 25px); }
    75% { transform: translate(20px, 10px); }
}

/* === Mobile Responsive === */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .navbar { padding: 0.75rem 1rem; }
    .logo-text { font-size: 1rem; }
    .nav-btn { padding: 0.45rem 1rem; font-size: 0.8rem; }
    .hero { padding: 7rem 1.25rem 3rem; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-desc { font-size: 0.95rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
    }
    .stat-number { font-size: 1.6rem; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .chat-messages { min-height: 250px; padding: 1rem; }
    .section-title { font-size: 1.6rem; }
    .feature-card { padding: 1.5rem; }
}
