/* 1Mint Studio - Production CSS */

:root {
    --primary: #22FFD7;
    --accent: #8B5CF6;
    --secondary: #FF006E;
    --dark: #020408;
    --dark-2: #080C14;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-md { max-width: 1024px; }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.full-width { width: 100%; }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    font-weight: 600;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(34, 255, 215, 0.4);
}
.btn-shine {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transform: translateY(100%);
    transition: transform 0.3s;
}
.btn-primary:hover .btn-shine { transform: translateY(0); }

.btn-white {
    background: white;
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.3s;
}
.btn-white:hover { transform: scale(1.05); }

.btn-outline {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #d1d5db;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 1.5rem 0;
    transition: all 0.3s;
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(2, 4, 8, 0.95);
    border-color: var(--border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.brand-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}
.brand-tagline {
    display: block;
    font-size: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}
.desktop-nav { display: none; gap: 2rem; }
.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
}
.nav-link:hover { color: var(--primary); }
.header-actions { display: none; }
.mobile-toggle {
    background: none;
    color: white;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-nav, .header-actions { display: flex; align-items: center; }
    .mobile-toggle { display: none; }
}

.mobile-menu {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--dark);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: all 0.3s;
}
.mobile-menu.open { height: auto; opacity: 1; padding-bottom: 1rem; }
.mobile-link { padding: 1.25rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-cta-container { padding: 1.25rem; }

/* --- HERO --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: var(--dark);
    overflow: hidden;
}
.hero-3d-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    margin-bottom: 2.5rem;
}
.status-indicator { position: relative; width: 0.5rem; height: 0.5rem; }
.ping { position: absolute; width: 100%; height: 100%; background: #10b981; border-radius: 50%; animation: ping 1s infinite; opacity: 0.75; }
.dot { position: relative; display: block; width: 100%; height: 100%; background: #10b981; border-radius: 50%; }
.status-text { font-family: var(--font-mono); font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; font-weight: 500; letter-spacing: 0.05em; }
.separator { width: 1px; height: 0.75rem; background: rgba(255,255,255,0.1); }
.status-sub { font-family: var(--font-mono); font-size: 0.7rem; color: #6b7280; text-transform: uppercase; }

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 500;
}
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 7rem; } }

.hero-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto 3rem;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* --- AI PANEL --- */
.analysis-section { margin-top: -8rem; padding-bottom: 8rem; position: relative; z-index: 20; padding-left: 1rem; padding-right: 1rem; }
.glass-panel {
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.panel-header {
    height: 2rem;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
}
.panel-title { display: flex; align-items: center; gap: 0.5rem; color: #6b7280; letter-spacing: 0.1em; }
.dot-pulse { width: 0.5rem; height: 0.5rem; background: #10b981; border-radius: 50%; }
.panel-meta { color: #4b5563; }

.panel-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .panel-grid { grid-template-columns: 5fr 4fr 3fr; min-height: 300px; } }

.panel-col { padding: 1.5rem; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .panel-col { border-bottom: none; border-right: 1px solid var(--border); } }
.panel-col:last-child { border: none; }

.logs { background: rgba(0,0,0,0.2); font-family: var(--font-mono); font-size: 0.75rem; display: flex; flex-direction: column; justify-content: flex-end; }
.log-container { position: relative; z-index: 10; }
.ai-log-line { margin-bottom: 0.5rem; border-left: 2px solid rgba(255,255,255,0.1); padding-left: 0.75rem; animation: fade-in 0.3s; }

.scanner { display: flex; align-items: center; justify-content: center; }
.scanner-circle {
    width: 12rem; height: 12rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.scan-ring { position: absolute; inset: 0; border: 1px solid rgba(34,255,215,0.2); border-radius: 50%; animation: ping 3s infinite; }
.scan-line { position: absolute; top: 50%; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(34,255,215,0.1), transparent); animation: scan 4s linear infinite; transform-origin: top; }
.scan-content { text-align: center; z-index: 10; }
.scan-label { font-size: 0.625rem; color: #6b7280; font-family: var(--font-mono); margin-bottom: 0.25rem; }
.scan-value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; line-height: 1; }
.scan-sub { font-size: 0.75rem; color: #34d399; font-family: var(--font-mono); margin-top: 0.25rem; }

.metrics { display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,0.02); }
.metric-item { margin-bottom: 1.5rem; }
.metric-label { display: flex; justify-content: space-between; font-size: 0.625rem; font-family: var(--font-mono); color: #9ca3af; margin-bottom: 0.5rem; }
.progress-bar { height: 0.25rem; background: rgba(255,255,255,0.1); width: 100%; }
.fill { height: 100%; }
.fill.emerald { background: #10b981; width: 5%; box-shadow: 0 0 10px rgba(16,185,129,0.5); }
.fill.blue { background: #3b82f6; box-shadow: 0 0 10px rgba(59,130,246,0.5); }
.fill.purple { background: #8b5cf6; box-shadow: 0 0 10px rgba(139,92,246,0.5); }

.metric-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: center; }
.icon-box { padding: 0.5rem; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 0.375rem; color: #34d399; }
.meta-label { font-size: 0.625rem; color: #6b7280; font-family: var(--font-mono); }
.meta-value { font-size: 0.875rem; font-weight: 700; color: white; }

/* --- STATS --- */
.stats-section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); background: var(--dark); position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { padding: 1.5rem; text-align: center; border-right: 1px solid var(--border); transition: background 0.5s; }
.stat-item:hover { background: rgba(255,255,255,0.02); }
@media (min-width: 768px) { .stat-item { text-align: left; } }
.stat-label { font-size: 0.625rem; font-family: var(--font-mono); color: #6b7280; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
@media (min-width: 768px) { .stat-label { justify-content: flex-start; } }
.stat-item:hover .stat-label { color: var(--primary); }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: -0.05em; }

/* --- SERVICES --- */
.services-section { padding: 8rem 0; background: var(--dark); position: relative; overflow: hidden; }
.section-header { max-width: 42rem; margin-bottom: 5rem; }
.tag { color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 640px) { .section-title { font-size: 3rem; } }
.section-desc { font-size: 1.125rem; color: #9ca3af; line-height: 1.75; font-weight: 300; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    height: 480px; background: var(--dark-2); border: 1px solid var(--border);
    padding: 2rem; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden; transition: all 0.5s;
}
.service-card:hover { border-color: rgba(255,255,255,0.1); }
.card-glow { position: absolute; top: -6rem; right: -6rem; width: 12rem; height: 12rem; border-radius: 50%; filter: blur(80px); opacity: 0; transition: opacity 0.5s; }
.card-glow.primary { background: rgba(34,255,215,0.1); }
.card-glow.accent { background: rgba(139,92,246,0.1); }
.card-glow.secondary { background: rgba(255,0,110,0.1); }
.service-card:hover .card-glow { opacity: 1; }

.service-icon { width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; transition: transform 0.5s; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon.primary { color: var(--primary); }
.service-icon.accent { color: var(--accent); }
.service-icon.secondary { color: var(--secondary); }

.service-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.service-desc { font-size: 0.875rem; color: #9ca3af; line-height: 1.75; }
.card-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
.service-list { list-style: none; font-family: var(--font-mono); font-size: 0.875rem; color: #6b7280; display: flex; flex-direction: column; gap: 0.75rem; }
.service-list li { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.25rem; height: 0.25rem; }
.dot.primary { background: var(--primary); }
.dot.accent { background: var(--accent); }
.dot.secondary { background: var(--secondary); }

/* --- FEATURES --- */
.features-section { padding: 8rem 0; background: var(--dark); border-top: 1px solid var(--border); }
.features-layout { display: grid; grid-template-columns: 1fr; gap: 5rem; align-items: center; }
@media (min-width: 1024px) { .features-layout { grid-template-columns: 1fr 1fr; } }
.features-text .tag { color: var(--accent); }
.features-list { display: flex; flex-direction: column; gap: 3rem; }
.feature-row { display: flex; gap: 1.5rem; }
.feature-line { width: 1px; background: linear-gradient(to bottom, rgba(34,255,215,0.5), transparent); }
.feature-line.accent { background: linear-gradient(to bottom, rgba(139,92,246,0.5), transparent); }
.feature-line.secondary { background: linear-gradient(to bottom, rgba(255,0,110,0.5), transparent); }
.feature-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.feature-desc { font-size: 0.875rem; color: #9ca3af; max-width: 24rem; }
.icon-primary { color: var(--primary); font-size: 0.875rem; }
.icon-accent { color: var(--accent); font-size: 0.875rem; }
.icon-secondary { color: var(--secondary); font-size: 0.875rem; }

.code-window { border-radius: 0.5rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: #0A0E14; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.code-header { background: #05070A; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.window-controls { display: flex; gap: 0.375rem; }
.window-controls div { width: 0.625rem; height: 0.625rem; border-radius: 50%; }
.red { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.5); }
.yellow { background: rgba(234,179,8,0.2); border: 1px solid rgba(234,179,8,0.5); }
.green { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.5); }
.filename { font-family: var(--font-mono); font-size: 0.625rem; color: #6b7280; }
.file-meta { font-family: var(--font-mono); font-size: 0.625rem; color: #4b5563; display: flex; gap: 0.5rem; }

.code-body { padding: 1.5rem; background: #0A0E14; overflow-x: auto; position: relative; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5rem; }
.line-numbers { position: absolute; left: 1rem; color: #374151; user-select: none; text-align: right; width: 1.5rem; }
.code-content { padding-left: 2.5rem; }
.c-purple { color: #c084fc; }
.c-yellow { color: #fde047; }
.c-green { color: #86efac; }
.c-blue { color: #60a5fa; }
.c-orange { color: #fb923c; }
.c-gray { color: #6b7280; }

.code-footer { background: rgba(34,255,215,0.1); border-top: 1px solid rgba(34,255,215,0.2); padding: 0.375rem 1rem; display: flex; align-items: center; gap: 0.5rem; color: var(--primary); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; }

/* --- CTA --- */
.cta-section { position: relative; padding: 10rem 0; overflow: hidden; background: var(--dark); text-align: center; }
.cta-title { font-family: var(--font-display); font-size: 3rem; font-weight: 500; margin-bottom: 2rem; letter-spacing: -0.05em; }
@media (min-width: 640px) { .cta-title { font-size: 4.5rem; } }
.cta-desc { font-size: 1.125rem; color: #6b7280; max-width: 36rem; margin: 0 auto 3rem; font-weight: 300; }

/* --- FOOTER --- */
.site-footer { background: var(--dark); padding-top: 6rem; padding-bottom: 3rem; border-top: 1px solid rgba(255,255,255,0.1); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-col { display: flex; flex-direction: column; gap: 1.75rem; }
.footer-desc { color: #d1d5db; font-size: 0.875rem; line-height: 1.625; }
.social-links { display: flex; gap: 1.25rem; }
.social-links a { width: 2.75rem; height: 2.75rem; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #d1d5db; transition: all 0.3s; }
.social-links a:hover { background: var(--primary); color: var(--dark); transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: #d1d5db; font-size: 0.875rem; }
.footer-col a:hover { color: var(--primary); }

.newsletter-form { display: flex; gap: 0.625rem; margin-top: 1.25rem; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 0.875rem 1.25rem; color: white; font-size: 0.9375rem; outline: none; transition: border-color 0.3s; }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.newsletter-form button:hover { background: var(--primary); color: var(--dark); }

.footer-bottom { padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.875rem; color: #9ca3af; }

/* --- MODAL & CHAT --- */
.scroll-top-btn { position: fixed; bottom: 2.5rem; left: 2.5rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 0 25px rgba(34,255,215,0.5); opacity: 0; pointer-events: none; transform: translateY(2rem); transition: all 0.3s; z-index: 50; }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { transform: scale(1.1); }

.notification-toast { position: fixed; top: 2.5rem; right: 2.5rem; padding: 1.25rem 1.75rem; border-radius: 0.5rem; font-weight: 600; color: white; z-index: 1000; box-shadow: 0 15px 35px rgba(0,0,0,0.3); transform: translateX(120%); transition: transform 0.3s; }
.notification-toast.visible { transform: translateX(0); }
.notification-info { background: #3b82f6; }
.notification-success { background: #10b981; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,4,8,0.8); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: 100%; max-width: 40rem; background: var(--dark-2); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: translateY(2rem) scale(0.95); transition: all 0.3s; display: flex; flex-direction: column; max-height: 90vh; }
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.close-btn { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255,255,255,0.05); color: #9ca3af; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.close-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.modal-body { padding: 1.5rem; overflow-y: auto; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: #d1d5db; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; background: var(--dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.75rem 1rem; color: white; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }

/* Chat Panel */
.chat-toggle { position: fixed; bottom: 2rem; right: 1.5rem; z-index: 40; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-radius: 9999px; border: 1px solid rgba(34,255,215,0.2); background: rgba(2,4,8,0.9); backdrop-filter: blur(10px); color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 0 20px rgba(34,255,215,0.2); transition: all 0.3s; }
.chat-toggle:hover { background: rgba(34,255,215,0.1); }
.status-dot-container { position: relative; width: 0.5rem; height: 0.5rem; }

.chat-panel { position: fixed; bottom: 0; right: 0; z-index: 50; width: 100%; transition: all 0.5s; transform: translateY(110%); opacity: 0; }
@media (min-width: 640px) { .chat-panel { bottom: 2rem; right: 1.5rem; width: 420px; } }
.chat-panel.open { transform: translateY(0); opacity: 1; }
.chat-container { background: rgba(5,7,10,0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); height: 85vh; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
@media (min-width: 640px) { .chat-container { height: 600px; border-radius: 0.5rem; } }
.chat-header { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); display: flex; justify-content: space-between; align-items: center; }
.chat-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-icon { width: 2rem; height: 2rem; border-radius: 0.25rem; background: rgba(34,255,215,0.1); border: 1px solid rgba(34,255,215,0.2); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.75rem; }
.chat-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); letter-spacing: 0.1em; font-weight: 700; }
.chat-status { font-family: var(--font-mono); font-size: 0.625rem; color: #6b7280; }
.chat-close { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; color: #6b7280; transition: color 0.2s; }
.chat-close:hover { color: white; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1.5rem; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4)); }
.chat-input-area { padding: 0.75rem; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.05); }
.input-wrapper { display: flex; gap: 0.5rem; align-items: center; }
.input-wrapper input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.125rem; padding: 0.75rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: white; outline: none; }
.input-wrapper input:focus { border-color: rgba(34,255,215,0.4); background: rgba(255,255,255,0.1); }
.input-wrapper button { padding: 0.75rem 1rem; background: rgba(34,255,215,0.1); border: 1px solid rgba(34,255,215,0.2); color: var(--primary); border-radius: 0.125rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; transition: all 0.2s; }
.input-wrapper button:hover { background: rgba(34,255,215,0.2); }
.chat-overlay { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,0,0,0.03), rgba(255,0,0,0.03) 1px, transparent 1px, transparent 10px); opacity: 0.1; }

.msg-bubble { max-width: 90%; padding: 0.75rem; border-radius: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; white-space: pre-line; border: 1px solid transparent; backdrop-filter: blur(4px); }
.msg-label { font-size: 0.5625rem; color: #4b5563; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.msg-user { align-self: flex-end; }
.msg-user .msg-bubble { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #e5e7eb; }
.msg-ai { align-self: flex-start; }
.msg-ai .msg-bubble { background: rgba(34,255,215,0.05); border-color: rgba(34,255,215,0.2); color: rgba(34,255,215,0.9); box-shadow: 0 0 15px rgba(34,255,215,0.05); }

/* Animations */
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.animate-slide-up { animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-2 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-3 { animation-delay: 300ms; transition-delay: 300ms; }
.noise-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
