:root {
    --bg-dark: #030305;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent-purple: #7C3AED;
    --accent-cyan: #06B6D4;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body { font-family: 'Outfit', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; scroll-behavior: smooth; }

/* Custom Glow Cursor */
#cursor-glow {
    position: fixed; top: 0; left: 0; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.05) 40%, rgba(3, 3, 5, 0) 70%);
    border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s; mix-blend-mode: screen;
}

/* Typography & Utilities */
.text-gradient { background: linear-gradient(135deg, #c4b5fd, #7C3AED, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-cyan { color: var(--accent-cyan); } .text-purple { color: var(--accent-purple); }
.huge-text { font-size: 5vw; font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.section-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.section-desc { font-size: 1.2rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; }
.manifesto-text { font-size: 1.6rem; color: #e2e8f0; line-height: 1.8; margin-bottom: 2rem; font-weight: 400; }
.centered-text { text-align: center; } .max-w-800 { max-width: 800px; margin: 0 auto; } .relative-z { position: relative; z-index: 10; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; z-index: 1000; background: rgba(3, 3, 5, 0.6); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 500; margin: 0 1rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn-primary { background: var(--accent-purple); color: white; text-decoration: none; font-weight: 600; padding: 0.8rem 1.5rem; border-radius: 12px; box-shadow: 0 0 20px rgba(124, 58, 237, 0.4); transition: all 0.3s; border: none; outline: none; }
.btn-primary:hover { background: #6D28D9; box-shadow: 0 0 30px rgba(124, 58, 237, 0.6); transform: translateY(-2px); }
.huge-btn { font-size: 1.2rem; padding: 1.2rem 2.5rem; border-radius: 16px; }

/* Sections */
.fullscreen-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 5rem 5%; overflow: hidden; }
.padding-section { padding: 8rem 5%; max-width: 1400px; margin: 0 auto; }
.dark-section { background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, rgba(3, 3, 5, 1) 70%); }
.section-container { display: flex; width: 100%; max-width: 1400px; align-items: center; gap: 4rem; }
.reverse-layout { flex-direction: row-reverse; }
.text-content { flex: 1; z-index: 10; } .visual-content { flex: 1; display: flex; justify-content: center; z-index: 10; }

/* 1. Hero / The Brain */
.hero-bg-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; display: flex; align-items: center; justify-content: center; }
.orb { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 70%); border-radius: 50%; filter: blur(60px); animation: pulseOrb 8s infinite alternate; }
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; 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: 50px 50px; transform: perspective(500px) rotateX(60deg); transform-origin: bottom; animation: moveGrid 20s linear infinite; opacity: 0.3; }
.hero-content { text-align: center; z-index: 10; position: relative; }
.badge { display: inline-block; padding: 0.5rem 1rem; margin-bottom: 1.5rem; background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 50px; color: var(--accent-purple); font-weight: 600; font-size: 0.9rem; }
.hero-subtitle { font-size: 1.4rem; color: var(--text-dim); max-width: 700px; margin: 0 auto; }
.scroll-indicator { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--text-dim); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-indicator .line { width: 2px; height: 60px; background: linear-gradient(to bottom, var(--accent-purple), transparent); animation: scrollLine 2s infinite; }

/* Showcase & Bento Grid */
.section-header { text-align: center; margin-bottom: 5rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.showcase-card { padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s; }
.showcase-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(124, 58, 237, 0.15); border-color: rgba(124, 58, 237, 0.4); }
.card-icon { font-size: 4rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4)); }
.showcase-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.showcase-card p { color: var(--text-dim); line-height: 1.6; font-size: 1.1rem; }

.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.bento-card { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; transition: transform 0.3s, border-color 0.3s; }
.bento-card:hover { transform: translateY(-5px); border-color: rgba(6, 182, 212, 0.5); }
.bento-card h3 { font-size: 1.5rem; color: var(--accent-cyan); margin-bottom: 1rem; }
.bento-card p { color: var(--text-dim); line-height: 1.6; }
.col-span-full { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(6, 182, 212, 0.05) 100%); }

/* Panels & Glass */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.interactive-playground { width: 100%; max-width: 500px; position: relative; padding: 2.5rem; }
.playground-hint { color: var(--accent-purple); font-size: 0.9rem; margin-bottom: 1rem; font-weight: 600;}
.selectable-code { background: #0f111a; padding: 1.5rem; border-radius: 12px; font-family: monospace; color: #a5b4fc; font-size: 1.1rem; line-height: 1.5; border: 1px solid rgba(255,255,255,0.05); }
.fab-mockup { position: absolute; top: -20px; left: 50%; transform: translateX(-50%) scale(0.8); background: rgba(17, 17, 21, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(124, 58, 237, 0.4); border-radius: 20px; padding: 8px; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2); }
.fab-mockup.active { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; }
.fab-mockup button { background: transparent; border: 1px solid var(--glass-border); color: white; padding: 8px 16px; border-radius: 14px; font-family: 'Outfit'; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.fab-mockup button:hover { background: var(--accent-purple); border-color: var(--accent-purple); }
.fab-mockup .fab-aria { border-color: var(--accent-purple); color: var(--accent-purple); }
.fab-mockup .fab-aria:hover { color: white; }

/* Swarm Canvas & Approval Dialog */
#swarm-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.approval-mockup { max-width: 450px; margin: 3rem 0 0; padding: 0; overflow: hidden; border: 1px solid rgba(239, 68, 68, 0.3); box-shadow: 0 20px 60px rgba(239, 68, 68, 0.1); }
.approval-header { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 1rem 1.5rem; font-weight: 800; border-bottom: 1px solid rgba(239, 68, 68, 0.2); display: flex; align-items: center; gap: 10px; }
.approval-body { padding: 1.5rem; }
.terminal-text { display: block; background: #000; color: #4ade80; padding: 1rem; border-radius: 8px; margin-top: 1rem; font-family: monospace; border: 1px solid rgba(74, 222, 128, 0.2); }
.approval-actions { padding: 1rem 1.5rem; display: flex; gap: 1rem; justify-content: flex-end; background: rgba(0,0,0,0.2); border-top: 1px solid var(--glass-border); }
.btn-reject { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); padding: 0.6rem 1.2rem; border-radius: 8px; font-family: 'Outfit'; font-weight: 600; }
.btn-allow { background: #ef4444; border: none; color: white; padding: 0.6rem 1.2rem; border-radius: 8px; font-family: 'Outfit'; font-weight: 600; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; width: 2px; background: var(--glass-border); top: 0; bottom: 0; left: 20px; }
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 60px; }
.timeline-dot { position: absolute; width: 16px; height: 16px; background: var(--accent-purple); border-radius: 50%; left: 13px; top: 24px; box-shadow: 0 0 10px rgba(124, 58, 237, 0.5); }
.timeline-dot-future { background: transparent; border: 2px solid var(--accent-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.6); }
.timeline-content { padding: 2rem; }
.timeline-content h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.border-glow { border: 1px solid rgba(6, 182, 212, 0.3); box-shadow: 0 0 20px rgba(6, 182, 212, 0.1); }

/* --- UI Mockups CSS --- */

/* Input Bar */
.ui-input-bar { margin-top: 3rem; display: flex; align-items: center; background: rgba(10, 10, 15, 0.9); border: 1px solid rgba(124, 58, 237, 0.4); border-radius: 40px; padding: 0.8rem 1.5rem; width: 100%; max-width: 700px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); position: relative; z-index: 20; }
.ui-input-icon { margin-right: 1.5rem; display: flex; align-items: center; }
.ui-input-field { flex: 1; text-align: left; color: var(--text-dim); font-size: 1.2rem; font-family: 'Outfit'; display: flex; align-items: center; }
.blinking-cursor { display: inline-block; width: 2px; height: 1.4rem; background: var(--text-main); margin-left: 5px; animation: blink 1s step-end infinite; }
.ui-input-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.6rem 1.5rem; border-radius: 20px; font-size: 1rem; margin-left: 1.5rem; color: #fff; }

/* Dashboard */
.ui-dashboard { width: 100%; max-width: 900px; margin: 0 auto; background: rgba(15, 15, 20, 0.95); padding: 2.5rem; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.ui-dash-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.ui-dash-title { display: flex; align-items: center; gap: 15px; font-weight: 800; font-size: 1.4rem; }
.status-ready { font-size: 0.85rem; background: rgba(74, 222, 128, 0.1); color: #4ade80; padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(74,222,128,0.3); margin-left: 10px; }
.ui-dash-tabs { display: flex; gap: 2rem; color: var(--text-dim); font-weight: 600; font-size: 1.1rem; }
.active-tab { color: var(--accent-purple); border-bottom: 2px solid var(--accent-purple); padding-bottom: 8px; }
.ui-dash-controls { color: var(--text-dim); letter-spacing: 5px; cursor: pointer; font-size: 1.2rem; }
.ui-dash-stats { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .ui-dash-stats { flex-direction: row; } }
.ui-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; flex: 1; }
.ui-stat-card { padding: 1.5rem; background: rgba(255, 255, 255, 0.03); border-radius: 16px; border: 1px solid var(--glass-border); display: flex; flex-direction: column; justify-content: center; }
.stat-time { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; line-height: 1; }
.stat-date { color: var(--text-dim); font-size: 1rem; }
.stat-value { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; line-height: 1; }
.stat-label { color: var(--text-dim); font-size: 0.95rem; }
.ui-dash-tasks { display: flex; flex-direction: column; gap: 1rem; }
.ui-task { display: flex; align-items: center; padding: 1.2rem 1.5rem; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid var(--glass-border); }
.task-dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 1.5rem; flex-shrink: 0; }
.task-dot.green { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.task-dot.orange { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.task-info { flex: 1; display: flex; flex-direction: column; text-align: left; }
.task-name { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }
.task-status { font-size: 0.9rem; }
.task-time { color: var(--text-dim); font-size: 0.9rem; margin-left: 1rem; }

/* Chat Snippet */
.ui-chat-snippet { margin-top: 2.5rem; text-align: left; background: rgba(0, 0, 0, 0.4); border-left: 3px solid var(--accent-purple); padding: 2rem; border-radius: 0 16px 16px 0; font-size: 1.05rem; }
.chat-title { font-weight: 800; font-size: 1.4rem; margin-bottom: 1.5rem; color: #fff; }
.ui-chat-snippet ul { list-style: none; margin-left: 0; padding-left: 0; }
.ui-chat-snippet li { margin-bottom: 1rem; color: var(--text-dim); line-height: 1.6; }
.ui-chat-snippet strong { color: #fff; }

/* Night Shift Mockup */
.ui-nightshift { width: 100%; max-width: 700px; padding: 2.5rem; border: 1px solid rgba(124, 58, 237, 0.4); background: rgba(15, 15, 20, 0.95); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); text-align: left; margin-top: 3rem; }
.nightshift-header { font-size: 1.8rem; font-weight: 800; display: flex; flex-direction: column; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; color: #fff; }
.sub-header { font-size: 1rem; font-weight: 400; color: var(--text-dim); margin-top: 0.8rem; }
.nightshift-input { width: 100%; padding: 1.2rem 1.5rem; background: rgba(0,0,0,0.6); border: 1px solid var(--glass-border); border-radius: 12px; color: white; font-family: 'Outfit'; margin-bottom: 2rem; font-size: 1.1rem; outline: none; }
.nightshift-input:focus { border-color: var(--accent-purple); }
.nightshift-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.ns-limit { color: var(--text-dim); font-size: 1rem; }
.ns-start { font-size: 1.1rem; padding: 0.8rem 2rem; }
.ns-logs { background: rgba(0,0,0,0.6); padding: 1.5rem; border-radius: 12px; font-family: monospace; font-size: 0.95rem; max-height: 200px; overflow-y: auto; border: 1px solid rgba(255,255,255,0.05); }
.log-item { margin-bottom: 0.8rem; color: var(--text-dim); display: flex; align-items: flex-start; gap: 10px; }
.log-item.success { color: #4ade80; }

/* Integrations Mockup Panel */
.ui-integrations-panel { width: 100%; max-width: 500px; background: rgba(15, 15, 20, 0.95); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.ui-integrations-header { padding: 2rem 2.5rem 1rem; border-bottom: 1px solid var(--glass-border); }
.ui-integrations-header h3 { font-size: 1.5rem; color: var(--accent-cyan); margin-bottom: 0.5rem; }
.ui-integrations-header p { color: var(--text-dim); font-size: 0.95rem; }

.ui-integrations { display: flex; flex-direction: column; }
.ui-integration-item { display: flex; align-items: center; padding: 1.5rem 2.5rem; border-bottom: 1px solid var(--glass-border); transition: background 0.3s; }
.ui-integration-item:hover { background: rgba(255,255,255,0.02); }
.int-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 1.5rem; flex-shrink: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.int-icon svg { width: 28px; height: 28px; }
.int-info { flex: 1; display: flex; flex-direction: column; text-align: left; }
.int-info strong { font-size: 1.2rem; margin-bottom: 5px; color: #fff; }
.int-info span { font-size: 0.95rem; color: var(--text-dim); }
.int-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.6rem 1.5rem; border-radius: 8px; font-family: 'Outfit'; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.int-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }

/* Utility fix for blinking */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Footer */
.footer { text-align: center; padding: 8rem 5% 4rem; background: linear-gradient(to top, rgba(124, 58, 237, 0.1), transparent); border-top: 1px solid var(--glass-border); }
.footer-actions { margin: 3rem 0; }
.copyright { color: var(--text-dim); font-size: 0.9rem; }

/* Animations & Reveals */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0,0); }
.delay-2 { transition-delay: 0.2s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes pulseOrb { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(20px, -20px); } }
@keyframes moveGrid { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
    .section-container { flex-direction: column !important; text-align: center; }
    .huge-text { font-size: 12vw; } .section-title { font-size: 2.5rem; }
    .nav-links { display: none; }
}
