:root {
    --midnight: #050505;
    --electric: #a855f7;
    --cyan: #22d3ee;
    --slate: #f1f5f9;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight);
    color: var(--slate);
    line-height: 1.6;
    overflow-x: hidden;
}

#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-600 { max-width: 600px; }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center { text-align: center; }

.glass {
    backdrop-filter: blur(16px);
    background: var(--glass);
    border: 1px solid var(--border);
}

.gradient-text {
    background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.7);
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo .dot { width: 12px; height: 12px; background: var(--electric); border-radius: 50%; box-shadow: 0 0 15px var(--electric); }
.logo h1 { font-size: 1.25rem; font-weight: 900; letter-spacing: -1px; }
.logo h1 span { color: var(--cyan); }

.online-status {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ping {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* Hero */
.hero { padding: 12rem 0 6rem; position: relative; }
.tagline {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--electric);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
}

.h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-p { font-size: 1.25rem; color: #94a3b8; max-width: 700px; margin: 0 auto 3rem; }

.gatekeeper {
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 2rem;
    text-align: left;
}

.verify-row { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.verify-text h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.verify-text p { font-size: 0.75rem; color: #94a3b8; }

.btn-primary {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(34, 211, 238, 0.4); }

.shake-error { animation: shake 0.5s; border-color: #ef4444; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Features */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; font-style: italic; margin-bottom: 1rem; }
.section-title p { color: #94a3b8; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: 0.3s;
}

.feature-card:hover { border-color: var(--electric); transform: translateY(-5px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 1.5rem; font-weight: 900; color: var(--electric); }
.feature-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; }
.feature-card p { font-size: 0.9rem; color: #94a3b8; }

/* Vision */
.vision { padding: 6rem 0; background: rgba(168, 85, 247, 0.03); }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-bottom: 2rem; font-size: 2.5rem; font-weight: 900; }
.prose p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #cbd5e1; }

/* Matrix */
.matrix { padding: 6rem 0; }
.table-container { overflow-x: auto; border-radius: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #64748b; }
.highlight { color: var(--cyan); font-weight: 900; background: rgba(168, 85, 247, 0.05); }

/* FAQ */
.faq-accordion details {
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--border);
}

summary {
    padding: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::after { content: '+'; color: var(--cyan); }
details[open] summary::after { content: '×'; }
details p { padding: 0 1.5rem 1.5rem; color: #94a3b8; font-size: 0.9rem; }

/* Footer */
.main-footer { padding: 6rem 0 3rem; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-grid h4 { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; color: #64748b; margin-bottom: 1.5rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 1rem; }
.footer-grid a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-grid a:hover { color: var(--cyan); }

.footer-bottom { text-align: center; border-top: 1px solid var(--border); padding-top: 2rem; font-size: 0.7rem; color: #475569; }

/* Chat Modal */
#chat-modal {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

#loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--midnight);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--electric);
    border-right: 4px solid var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.chat-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}

.status-indicator { font-size: 0.65rem; font-weight: 900; color: var(--cyan); display: flex; align-items: center; gap: 0.5rem; }

#exit-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

#iframe-container { flex: 1; }
iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 768px) {
    .h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 8rem 0 4rem; }
}
