:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #ff007a;
    --bg: #030712;
    --panel: rgba(17, 24, 39, 0.7);
    --border: rgba(0, 242, 255, 0.2);
    --text-main: #f9fafb;
    --text-dim: #9ca3af;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

 
.bg-container {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#canvas-bg {
    width: 100%;
    height: 100%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    opacity: 0.3;
}

.radial-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.15) 0%, transparent 50%);
}

 
nav {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo-text .main {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-text .sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

.status-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.glass-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.glass-btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px var(--primary);
}

 
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

 
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
}

.ai-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.glitch {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 3px;
    position: relative;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.main-title span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 1.5rem;
}

 
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-v2 {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-value small {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.stat-chart {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 16px;
    border-radius: 2px;
}

.stat-chart .bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.stat-chart .bar.highlight { background: var(--secondary); }
.stat-chart .bar.pulse { animation: barPulse 2s infinite linear; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

 
.layout-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 30px;
}

 
.monitor-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 30px;
    position: relative;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.panel-header i { color: var(--primary); }
.panel-header h2 { font-size: 1.1rem; margin: 0; letter-spacing: 1px; }

.monitor-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tax-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

svg {
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke-width: 6;
}

circle.bg { stroke: rgba(255, 255, 255, 0.05); }
circle.prog {
    stroke: var(--primary);
    stroke-dasharray: 283;
    stroke-dashoffset: 200;  
    stroke-linecap: round;
}

.tax-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tax-center .num {\ font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.tax-center .lab {\ font-size: 0.7rem; color: var(--text-dim); letter-spacing: 2px; }

.dist-info {
    width: 100%;
}

.dist-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dist-row .label {\ font-size: 0.85rem; color: var(--text-dim); }
.dist-row .value { font-weight: 700; }
.dist-row .value.cyan { color: var(--primary); }
.dist-row .value.pink { color: var(--secondary); }

 
.terminal-panel-v2 {
    background: #000;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.terminal-top {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.window-title { font-size: 0.7rem; font-family: monospace; color: var(--text-dim); }

.terminal-content {
    flex-grow: 1;
    height: 400px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9));
}

.log-entry { margin-bottom: 8px; }
.log-entry.system { color: #6b7280; }
.log-entry.success { color: var(--primary); }
.log-entry.action { color: var(--secondary); }

 
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes barPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

@keyframes barPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

 
.site-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem 2rem 2rem;
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 600px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 4rem;
}

.link-group h4 {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--primary));
}

.github-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.github-link:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

 
.agent-core-section {
    margin-bottom: 5rem;
    padding: 3rem;
    background: radial-gradient(circle at 100% 0%, rgba(112, 0, 255, 0.1), transparent 40%);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title i { font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; }
.section-title h2 { font-size: 2rem; margin: 0; letter-spacing: 2px; }
.section-title p { color: var(--text-dim); margin-top: 10px; }

.agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.agent-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 2px;
    transition: 0.4s;
}

.agent-card.highlight {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.05), transparent);
}

.agent-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.agent-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.agent-card.highlight .agent-icon { color: var(--secondary); }

.agent-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.agent-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.agent-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.agent-features i {
    font-size: 0.7rem;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .agent-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .main-title { font-size: 3rem; }
}

 
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--bg);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary);
    transition: 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    opacity: 1;
    transform: translateY(0);
}

.chat-window.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.chat-header i { color: var(--primary); }
.chat-header span { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.chat-header button { background: none; border: none; color: var(--text-dim); cursor: pointer; }

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.msg.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    align-self: flex-start;
}

.msg.user {
    background: var(--primary);
    color: var(--bg);
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-size: 0.85rem;
    color: white;
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
}