/* ───────── Reset & Base ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cyan: #3CDDE9;
    --blue: #063DCF;
    --dark: #070E1B;
    --dark2: #0F1A2E;
    --dark3: #161F33;
    --light: #E2EDF8;
    --soft: #C8D6E5;
    --gray: #8899B0;
    --accent: #FF6B35;
    --green: #2DD4A0;
    --gold: #FBBF24;
    --purple: #A78BFA;
    --pink: #F472B6;

    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glass-bg-hover: rgba(255,255,255,0.07);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--soft);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { color: #fff; line-height: 1.2; }
a { color: var(--cyan); text-decoration: none; }

/* ───────── Animations ───────── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ───────── Glass ───────── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ───────── Buttons ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 4px 24px rgba(60,221,233,0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 32px rgba(60,221,233,0.4);
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* ───────── Navigation ───────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
    background: rgba(7,14,27,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
}
.nav-logo-icon { width: 28px; height: 28px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(7,14,27,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}

/* ───────── Hero ───────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(60,221,233,0.12) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation: float 8s ease-in-out infinite;
}
.hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,61,207,0.1) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: float 8s ease-in-out infinite reverse;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.hero-content {
    position: relative;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(60,221,233,0.08);
    border: 1px solid rgba(60,221,233,0.2);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.hero-stat-label {
    font-size: 13px;
    color: var(--gray);
}
.hero-stat-divider {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.1);
}

/* ───────── Sections ───────── */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-header p {
    font-size: 17px;
    color: var(--gray);
    max-width: 520px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.tag-cyan    { background: rgba(60,221,233,0.1); color: var(--cyan); border: 1px solid rgba(60,221,233,0.2); }
.tag-accent  { background: rgba(255,107,53,0.1); color: var(--accent); border: 1px solid rgba(255,107,53,0.2); }
.tag-green   { background: rgba(45,212,160,0.1); color: var(--green); border: 1px solid rgba(45,212,160,0.2); }
.tag-gold    { background: rgba(251,191,36,0.1); color: var(--gold); border: 1px solid rgba(251,191,36,0.2); }
.tag-purple  { background: rgba(167,139,250,0.1); color: var(--purple); border: 1px solid rgba(167,139,250,0.2); }

/* ───────── Problems ───────── */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.problem-card { padding: 28px; }
.problem-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,53,0.1);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 16px;
}
.problem-icon svg { width: 22px; height: 22px; }
.problem-card h3 { font-size: 16px; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ───────── Features ───────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card { padding: 32px; }
.feature-icon-wrap {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 18px;
}
.feature-icon-wrap svg { width: 24px; height: 24px; }
.feature-icon-wrap.cyan    { background: rgba(60,221,233,0.1); color: var(--cyan); }
.feature-icon-wrap.green   { background: rgba(45,212,160,0.1); color: var(--green); }
.feature-icon-wrap.accent  { background: rgba(255,107,53,0.1); color: var(--accent); }
.feature-icon-wrap.gold    { background: rgba(251,191,36,0.1); color: var(--gold); }
.feature-icon-wrap.purple  { background: rgba(167,139,250,0.1); color: var(--purple); }
.feature-icon-wrap.pink    { background: rgba(244,114,182,0.1); color: var(--pink); }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ───────── Steps ───────── */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.step-card {
    padding: 32px 28px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}
.step-connector {
    color: rgba(255,255,255,0.15);
    width: 40px;
    flex-shrink: 0;
}
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--dark);
    margin: 0 auto 16px;
}
.cyan-bg   { background: var(--cyan); }
.green-bg  { background: var(--green); }
.accent-bg { background: var(--accent); }
.gold-bg   { background: var(--gold); }

.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray); }

@media (max-width: 768px) {
    .steps-grid { flex-direction: column; gap: 12px; }
    .step-connector { transform: rotate(90deg); width: auto; height: 30px; }
    .step-card { max-width: 100%; }
}

/* ───────── Admin ───────── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.admin-card { padding: 28px; }
.admin-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--dark);
}
.admin-icon svg { width: 22px; height: 22px; }
.admin-card h3 { font-size: 16px; margin-bottom: 14px; }
.admin-card ul { list-style: none; }
.admin-card li {
    font-size: 14px;
    color: var(--gray);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
}
.admin-card li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    position: absolute;
    left: 0; top: 12px;
}

/* ───────── Pricing ───────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}
.pricing-card {
    padding: 36px 28px;
    text-align: center;
    position: relative;
}
.pricing-featured {
    background: rgba(45,212,160,0.06) !important;
    border-color: rgba(45,212,160,0.2) !important;
    transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.05); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.pricing-price { margin-bottom: 28px; }
.price-amount {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-featured .price-amount {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}
.price-unit {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}
.pricing-features li {
    padding: 8px 0;
    padding-left: 22px;
    font-size: 14px;
    color: var(--soft);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    position: absolute;
    left: 0; top: 15px;
}
.pricing-featured .pricing-features li::before { background: var(--green); }

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 32px;
}

/* ───────── FAQ ───────── */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    padding: 0;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--cyan);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ───────── CTA ───────── */
.section-cta { text-align: center; }
.cta-content {
    position: relative;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(60,221,233,0.08) 0%, transparent 70%);
    top: -150px; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
.cta-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
    position: relative;
}
.cta-content p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 28px;
    position: relative;
}
.cta-content .btn { position: relative; }
.cta-contact {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
    position: relative;
}

/* ───────── Footer ───────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.footer-logo { width: 22px; height: 22px; }
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: var(--gray);
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 12px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ───────── Chat Widget ───────── */
.chat-container {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding: 4px;
}
.chat-container:hover { transform: none; }

/* Floating decorative orbs */
.chat-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}
.chat-orb--1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(60,221,233,0.15) 0%, transparent 70%);
    top: -100px; left: -80px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.chat-orb--2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(6,61,207,0.12) 0%, transparent 70%);
    bottom: -60px; right: -60px;
    animation: orbFloat2 10s ease-in-out infinite;
}
.chat-orb--3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(45,212,160,0.08) 0%, transparent 70%);
    top: 50%; right: -40px;
    animation: orbFloat3 8s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -20px) scale(1.08); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

.chat-widget {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    background: linear-gradient(170deg, #111d32 0%, #0a1222 60%, #070e1b 100%);
    border: 1px solid rgba(60,221,233,0.1);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 4px 6px rgba(0,0,0,0.15),
        0 12px 40px rgba(0,0,0,0.4),
        0 0 80px rgba(60,221,233,0.04);
}

/* ── Header ── */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(60,221,233,0.04) 0%, rgba(6,61,207,0.03) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.chat-avatar {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(60,221,233,0.1), rgba(6,61,207,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.chat-avatar svg { width: 24px; height: 24px; }
.chat-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    border: 1.5px solid rgba(60,221,233,0.2);
    animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}
.chat-avatar-dot {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 13px; height: 13px;
    background: var(--green);
    border-radius: 50%;
    border: 2.5px solid #111d32;
    box-shadow: 0 0 6px rgba(45,212,160,0.5);
}
.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.chat-header-name {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-ai-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    line-height: 1.4;
}
.chat-header-status {
    font-size: 12px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}
.chat-status-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 12px;
}
.chat-status-wave span {
    display: block;
    width: 2.5px;
    height: 6px;
    background: var(--green);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}
.chat-status-wave span:nth-child(1) { animation-delay: 0s; height: 4px; }
.chat-status-wave span:nth-child(2) { animation-delay: 0.15s; height: 8px; }
.chat-status-wave span:nth-child(3) { animation-delay: 0.3s; height: 5px; }
@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}
.chat-header-actions { display: flex; align-items: center; gap: 12px; }
.chat-header-dots {
    display: flex;
    gap: 4px;
    padding: 8px;
    opacity: 0.3;
}
.chat-header-dots span {
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
}

/* ── Chat body ── */
.chat-body {
    position: relative;
}

/* ── Messages area ── */
.chat-messages {
    padding: 24px 22px 12px;
    max-height: 360px;
    min-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.chat-timestamp {
    text-align: center;
    font-size: 11px;
    color: rgba(136,153,176,0.4);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 0;
}

/* ── Message rows ── */
.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 85%;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Message entrance animation */
.chat-msg-enter {
    animation: msgSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mini avatar next to messages */
.chat-msg-avatar {
    width: 30px; height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(60,221,233,0.08), rgba(6,61,207,0.1));
    border: 1px solid rgba(60,221,233,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-msg-avatar svg { width: 16px; height: 16px; }
.chat-msg.user .chat-msg-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, rgba(60,221,233,0.2), rgba(6,61,207,0.3));
    border: 1px solid rgba(60,221,233,0.2);
}
.chat-msg.user .chat-msg-avatar::after {
    content: '';
    width: 14px; height: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 50%;
}

/* ── Bubbles ── */
.chat-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
}
.chat-bubble p { margin: 0; }
.chat-bubble p + p { margin-top: 8px; }
.chat-msg.bot .chat-bubble {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--soft);
    border-top-left-radius: 6px;
}
.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    border: none;
    border-top-right-radius: 6px;
    box-shadow:
        0 2px 8px rgba(60,221,233,0.2),
        0 8px 24px rgba(6,61,207,0.15);
}

/* ── Typing indicator ── */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 20px;
}
.typing-indicator span {
    display: block;
    width: 7px; height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Suggestion cards ── */
.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 22px 18px;
}
.chat-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-family: var(--font);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    color: var(--soft);
    position: relative;
    overflow: hidden;
}
.chat-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60,221,233,0.06) 0%, rgba(6,61,207,0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.chat-chip:hover {
    border-color: rgba(60,221,233,0.2);
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(60,221,233,0.08),
        0 0 0 1px rgba(60,221,233,0.05);
}
.chat-chip:hover::before { opacity: 1; }
.chat-chip:active {
    transform: translateY(0) scale(0.99);
}
.chat-chip-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(60,221,233,0.1), rgba(6,61,207,0.1));
    border: 1px solid rgba(60,221,233,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}
.chat-chip:hover .chat-chip-icon {
    background: linear-gradient(135deg, rgba(60,221,233,0.15), rgba(6,61,207,0.15));
    border-color: rgba(60,221,233,0.25);
    box-shadow: 0 0 16px rgba(60,221,233,0.1);
}
.chat-chip-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}
.chat-chip-text strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
.chat-chip-text small {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
}
.chat-chip-arrow {
    font-size: 22px;
    color: rgba(255,255,255,0.15);
    font-weight: 300;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.chat-chip:hover .chat-chip-arrow {
    color: var(--cyan);
    transform: translateX(3px);
}

/* ── Input bar ── */
.chat-input-bar {
    padding: 16px 22px 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.12);
}
.chat-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-input-bar input {
    flex: 1;
    padding: 13px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    color: var(--light);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.chat-input-bar input:focus {
    border-color: rgba(60,221,233,0.3);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(60,221,233,0.06), 0 0 20px rgba(60,221,233,0.04);
}
.chat-input-bar input::placeholder { color: rgba(136,153,176,0.5); }
.chat-input-bar input:disabled { opacity: 0.35; }

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 2px;
}
.chat-powered {
    font-size: 11px;
    color: rgba(136,153,176,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-powered::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.4;
}
.chat-input-hint {
    font-size: 11px;
    color: rgba(136,153,176,0.3);
}

/* Send button */
.chat-send-btn {
    width: 46px; height: 46px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 12px rgba(60,221,233,0.2),
        0 8px 24px rgba(6,61,207,0.15);
    position: relative;
    overflow: hidden;
}
.chat-send-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.chat-send-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(60,221,233,0.3),
        0 12px 32px rgba(6,61,207,0.2);
}
.chat-send-btn:hover::after { opacity: 1; }
.chat-send-btn:active {
    transform: scale(0.95);
}
.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Sound toggle ── */
.chat-sound-toggle {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.chat-sound-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}
.chat-sound-toggle.active {
    background: linear-gradient(135deg, rgba(60,221,233,0.12), rgba(6,61,207,0.1));
    border-color: rgba(60,221,233,0.25);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(60,221,233,0.1);
}

/* ── Speaking state on header avatar ── */
.chat-avatar-bars {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.chat-avatar-bars span {
    width: 3px;
    height: 4px;
    border-radius: 1.5px;
    background: var(--cyan);
}

/* Speaking active state */
.chat-avatar.speaking .chat-avatar-ring {
    border-color: rgba(60,221,233,0.5);
    animation: speakRingPulse 1s ease-in-out infinite;
}
@keyframes speakRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; border-color: rgba(60,221,233,0.3); }
    50% { transform: scale(1.1); opacity: 1; border-color: rgba(60,221,233,0.6); }
}
.chat-avatar.speaking .chat-avatar-dot {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(60,221,233,0.8);
}
.chat-avatar.speaking .chat-avatar-bars {
    opacity: 1;
}
.chat-avatar.speaking .chat-avatar-bars span {
    animation: barBounce 0.7s ease-in-out infinite;
}
.chat-avatar.speaking .chat-avatar-bars span:nth-child(1) { animation-delay: 0s; }
.chat-avatar.speaking .chat-avatar-bars span:nth-child(2) { animation-delay: 0.12s; }
.chat-avatar.speaking .chat-avatar-bars span:nth-child(3) { animation-delay: 0.24s; }
@keyframes barBounce {
    0%, 100% { height: 3px; opacity: 0.4; }
    50% { height: 10px; opacity: 1; }
}

/* Status text change when speaking */
.chat-header-status.speaking .chat-status-wave span {
    background: var(--cyan);
    animation-duration: 0.6s;
}
.chat-header-status.speaking .chat-status-text {
    color: var(--cyan);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .chat-container { margin: 0 -8px; }
    .chat-widget { border-radius: 16px; }
    .chat-messages { max-height: 300px; min-height: 180px; padding: 18px 16px 10px; }
    .chat-msg { max-width: 90%; }
    .chat-suggestions { padding: 4px 16px 14px; }
    .chat-chip { padding: 12px 14px; gap: 12px; }
    .chat-chip-icon { width: 36px; height: 36px; border-radius: 10px; }
    .chat-input-bar { padding: 14px 16px 12px; }
    .chat-input-footer .chat-powered { display: none; }
    .chat-orb { display: none; }
}

/* ───────── Demo Page ───────── */
.demo-hero {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 40px;
}
.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(60,221,233,0.08);
    border: 1px solid rgba(60,221,233,0.2);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}
.demo-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.demo-hero p {
    font-size: 17px;
    color: var(--gray);
    max-width: 520px;
    margin: 0 auto;
}

/* Video container */
.demo-video-wrap {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.demo-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark2), var(--dark3));
    border: 1px solid var(--glass-border);
}
.demo-video iframe,
.demo-video video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video placeholder (when no URL configured) */
.demo-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}
.demo-play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(60,221,233,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(60,221,233,0.3);
}
.demo-play-icon svg {
    width: 24px;
    height: 24px;
    color: var(--cyan);
    margin-left: 3px;
}
.demo-video-placeholder span {
    font-size: 14px;
    color: var(--gray);
}

/* Platform CTA section */
.demo-cta {
    text-align: center;
    padding: 80px 0;
}
.demo-cta h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}
.demo-cta p {
    font-size: 17px;
    color: var(--gray);
    max-width: 520px;
    margin: 0 auto 32px;
}
.demo-cta .btn {
    font-size: 17px;
    padding: 16px 40px;
}
.demo-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.demo-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--soft);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
