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

html, body {
    background-color: #0F0F11;
    color: #F3F4F6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.15); opacity: 0.55; }
}
.neon-glow-1 {
    position: absolute; top: -15%; left: -10%; width: 50vw; height: 50vw;
    border-radius: 50%; background: #990011; filter: blur(140px);
    animation: pulseGlow 8s infinite ease-in-out; pointer-events: none; z-index: 1;
}
.neon-glow-2 {
    position: absolute; bottom: 5%; right: -10%; width: 45vw; height: 45vw;
    border-radius: 50%; background: #B91C1C; filter: blur(160px);
    animation: pulseGlow 12s infinite ease-in-out reverse; pointer-events: none; z-index: 1;
}

.bg-grid {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 10; 
    width: 100%;
}

header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(15, 15, 17, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    width: 100%;
}
.header-wrap { display: flex; justify-content: space-between; align-items: center; }

.btn-red {
    background: #B91C1C; color: #F3F4F6; border: none; font-size: 12px; font-weight: 600;
    padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.3);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-red:hover {
    background: #990011;
    box-shadow: 0 0 25px rgba(185, 28, 28, 0.6);
}

.nav-links { display: flex; }
.nav-links a { color: #9CA3AF; text-decoration: none; font-size: 14px; margin-right: 32px; transition: 0.2s; }
.nav-links a:hover { color: #F3F4F6; }

.hero { text-align: center; padding-top: 60px; padding-bottom: 40px; max-width: 780px; margin: 0 auto; }
.tagline {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px;
    font-size: 11px; font-weight: 500; background: rgba(185, 28, 28, 0.1);
    color: #EF4444; border: 1px solid rgba(185, 28, 28, 0.2); margin-bottom: 24px;
}
.tagline-dot { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: pulseGlow 2s infinite; }

h1 { 
    font-size: clamp(28px, 4.5vw, 44px); 
    font-weight: 670; 
    letter-spacing: -0.02em; 
    color: #F3F4F6; 
    line-height: 1.25; 
    margin-bottom: 24px; 
}

.descriptor {
    color: #9CA3AF; 
    font-size: clamp(10px, 1.5vw, 13px); 
    font-weight: 300; 
    letter-spacing: 0.08em;
    text-transform: uppercase; 
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding: 12px 0; 
    margin-top: 32px;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
    margin-top: 40px; 
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 24px; transition: 0.3s ease; position: relative;
    width: 100%;
    height: stretch;
}

.card:hover {
    border-color: rgba(185, 28, 28, 0.4);
    box-shadow: 0 0 25px rgba(185, 28, 28, 0.12);
}

.card.active {
    border-color: rgba(185, 28, 28, 0.4);
    box-shadow: 0 0 25px rgba(185, 28, 28, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.card:hover .card-icon {
    color: #EF4444 !important;
    border-color: rgba(185, 28, 28, 0.4) !important;
    background: rgba(185, 28, 28, 0.15) !important;
    transform: scale(1.05);
}

.badge {
    position: absolute; top: 0; right: 0; background: #B91C1C; color: #F3F4F6;
    font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 4px 12px;
    border-bottom-left-radius: 12px; letter-spacing: 0.05em;
    border-top-right-radius: 12px;
}

.card-icon {
    width: 40px; height: 40px; border-radius: 12px; background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.2); display: flex; align-items: center;
    justify-content: center; font-size: 18px; margin-bottom: 16px;
    color: #9CA3AF; transition: all 0.3s ease;
}

.card h3 { font-size: 18px; font-weight: 600; color: #F3F4F6; margin-bottom: 8px; }
.card p { color: #9CA3AF; font-size: 13.5px; font-weight: 300; line-height: 1.5; }
.card-link {
    display: inline-block; font-size: 13px; font-weight: 600; color: #EF4444;
    text-decoration: none; margin-top: 16px; transition: 0.2s;
}
.card-link:hover { color: #F3F4F6; }

.article-container {
padding-top: 40px;
padding-bottom: 100px;
max-width: 840px;
width: 100%;
}
.nav-block {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding: 0 8px;
}
.back-link-btn {
background: transparent;
border: none;
color: #9CA3AF;
font-size: 13px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 8px;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
font-family: inherit;
padding: 0;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link-btn:hover {
color: #EF4444;
transform: translateX(-4px);
}
.article-badge {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #EF4444;
background: rgba(185, 28, 28, 0.1);
border: 1px solid rgba(185, 28, 28, 0.2);
padding: 4px 12px;
border-radius: 9999px;
}
.glass-paper {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 24px;
padding: 56px 64px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.article-header {
text-align: left;
margin-bottom: 32px;
}
.article-title {
font-size: 38px;
font-weight: 600;
color: #F3F4F6;
letter-spacing: -0.02em;
line-height: 1.2;
margin-bottom: 16px;
}
.article-subtitle {
color: #9CA3AF;
font-size: 16px;
font-weight: 300;
line-height: 1.6;
}
.tech-divider {
height: 1px;
width: 100%;
background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(185,28,28,0.3), rgba(255,255,255,0.1));
margin-bottom: 40px;
}
.prose-content p {
color: #F3F4F6;
font-size: 16px;
line-height: 1.8;
font-weight: 200;
margin-bottom: 24px;
}
.prose-content p strong{
    font-weight: 400;
}
.prose-content h2 {
color: #F3F4F6;
font-size: 22px;
font-weight: 600;
margin-top: 48px;
margin-bottom: 20px;
letter-spacing: -0.01em;
}
.prose-content h3 {
color: #F3F4F6;
font-size: 17px;
font-weight: 400;
margin-top: 32px;
margin-bottom: 16px;
}
.prose-content ol, .prose-content ul {
margin-bottom: 32px;
padding-left: 24px;
}
.prose-content li {
color: #D1D5DB;
margin-bottom: 12px;
line-height: 1.7;
font-size: 15.5px;
font-weight: 200;
}
.prose-content li strong {
color: #F3F4F6;
font-weight: 400;
}
.prose-content blockquote {
background: rgba(185, 28, 28, 0.04);
backdrop-filter: blur(10px);
border: 1px solid rgba(185, 28, 28, 0.25);
border-left: 4px solid #B91C1C;
border-radius: 12px;
padding: 24px 28px;
margin: 44px 0 24px 0;
box-shadow: 0 10px 30px rgba(185, 28, 28, 0.05);
}

.prose-content blockquote p {
color: #F3F4F6;
font-size: 16px;
line-height: 1.7;
font-weight: 400;
margin-bottom: 0;
}

.prose-content blockquote a {
color: #a4c3ff;
font-size: 16px;
line-height: 1.7;
font-weight: 400;
text-decoration: dashed;
margin-bottom: 0;
}

.prose-content blockquote strong {
color: #FF4D4D;
font-weight: 700;
background: rgba(185, 28, 28, 0.15);
border: 1px solid rgba(185, 28, 28, 0.25);
padding: 2px 8px;
border-radius: 6px;
font-family: monospace;
font-size: 14px;
letter-spacing: 0.02em;
display: inline-block;
}

.tools-layout {
display: grid;
grid-template-columns: 300px 1fr;
gap: 32px;
padding-top: 40px;
padding-bottom: 60px;
min-height: calc(100vh - 80px);
}

.tools-sidebar {
background: rgba(255, 255, 255, 0.01);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 16px;
padding: 24px;
height: fit-content;
}
.sidebar-title {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #9CA3AF;
margin-bottom: 20px;
font-weight: 500;
}
.sidebar-menu { display: flex; flex-direction: column; gap: 8px; }
.menu-btn {
background: transparent; border: 1px solid transparent; color: #9CA3AF;
padding: 12px 16px; border-radius: 8px; text-align: left; font-size: 14px;
cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px;
}
.menu-btn:hover { color: #F3F4F6; background: rgba(255, 255, 255, 0.02); }
.menu-btn.active {
color: #F3F4F6; background: rgba(185, 28, 28, 0.05); border-color: rgba(185, 28, 28, 0.3);
}
.btn-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.menu-btn.active .btn-dot { background: #EF4444; box-shadow: 0 0 8px #EF4444; }

.tools-console {
background: rgba(15, 15, 17, 0.6);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 16px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.console-header {
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
padding: 12px 20px; display: flex; justify-content: space-between; font-size: 12px; color: #9CA3AF;
}
.status-pulse {
display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10B981;
margin-right: 6px; box-shadow: 0 0 8px #10B981;
}
 .console-terminal-name { font-family: monospace; font-weight: bold; }
.console-body {
padding: 24px; flex-grow: 1; display: flex; align-items: center; justify-content: center;
font-family: monospace; background: rgba(0, 0, 0, 0.2);
}
.code-line { color: #9CA3AF; font-size: 13px; margin-bottom: 8px; }

.module-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between; 
}
.module-screen.active { display: flex; }

.terminal-logs {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 16px;
    padding-right: 10px;
}
.log-line { margin-bottom: 6px; }
.log-line.system { color: #6B7280; }
.log-line.success { color: #10B981; }
.log-line.info { color: #3B82F6; }
.text-white { color: #F3F4F6; }

.console-input-zone {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: monospace;
}
.input-prompt {
    color: #EF4444;
    font-weight: bold;
    font-size: 14px;
}
.console-input-zone input {
    background: transparent;
    border: none;
    color: #F3F4F6;
    font-family: monospace;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.vision-container { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    gap: 16px; }
.vision-viewport {
    flex-grow: 1;
    background: #1a1a1e url('https://unsplash.com') center/cover no-repeat;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; 
    position: relative; 
    overflow: hidden; 
    min-height: 240px;
}
.viewport-overlay { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: rgba(0,0,0,0.7);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
    color: #10B981;}
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px #EF4444;
    top: 0;
    animation: scan 3s infinite linear;
}
.mock-bbox {
    position: absolute;
    border: 2px solid #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    border-radius: 2px;
}
.bbox-label {
    position: absolute;
    top: -18px; left: -2px;
    background: #B91C1C;
    color: #F3F4F6;
    font-size: 9px;
    font-family: monospace;
    padding: 1px 6px;
    font-weight: bold;
    white-space: nowrap;
}
.terminal-logs.compact {
    flex-grow: 0;
    height: 80px;
    margin-bottom: 0;
}

.research-card {
transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.filter-container {
display: flex;
justify-content: center;
gap: 12px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.filter-btn {
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.06);
color: #9CA3AF;
padding: 10px 20px;
border-radius: 9999px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-btn:hover {
color: #fff;
border-color: rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.04);
}
.filter-btn.active {
color: #fff;
background: rgba(185, 28, 28, 0.15);
border-color: rgba(185, 28, 28, 0.4);
box-shadow: 0 0 15px rgba(185, 28, 28, 0.15);
}
.vision-viewport.bark-bg {
background: #1a1a1e url('https://unsplash.com') center/cover no-repeat;
}
.vision-viewport.seeds-bg {
background: #151518 url('https://unsplash.com') center/cover no-repeat;
}

.bark-mask { position: absolute; inset: 10%; width: 80%; height: 80%; pointer-events: none; }

.seed-box { position: absolute; border: 1px solid #10B981; background: rgba(16, 185, 129, 0.1); border-radius: 2px; box-shadow: 0 0 4px #10B981; }
.seed-box.bad { border-color: #EF4444; background: rgba(239, 68, 68, 0.1); box-shadow: 0 0 4px #EF4444; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-glass-card {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 40px; max-width: 500px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(185, 28, 28, 0.05);
  position: relative; transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-glass-card { transform: scale(1); }

.modal-close-btn {
  position: absolute; top: 20px; right: 24px; background: transparent;
  border: none; color: #6B7280; font-size: 28px; cursor: pointer; transition: color 0.2s;
}
.modal-close-btn:hover { color: #fff; }

.modal-tagline { font-size: 10px; font-family: monospace; color: #EF4444; letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px; margin-bottom: 8px;}
.modal-header h3 { font-size: 22px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.modal-header p { color: #9CA3AF; font-size: 14px; line-height: 1.5; font-weight: 300; margin-bottom: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { color: #D1D5DB; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none; transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(185, 28, 28, 0.4); background: rgba(0,0,0,0.5); }
.form-submit-btn { width: 100%; padding: 12px !important; font-size: 14px !important; margin-top: 8px; }

.form-status-msg { font-size: 13px; font-family: monospace; margin-bottom: 12px; display: none; }
.form-status-msg.success { color: #10B981; display: block; }
.form-status-msg.error { color: #EF4444; display: block; }
.form-status-msg.process { color: #3B82F6; display: block; }

@keyframes scan { 0% { top: 0%; } 50% { top: 100%; } 100% { top: 0%; } }

@media (max-width: 768px) {
    html, body { overflow-y: auto;}
    .nav-links { display: none; }
    
    .hero { padding-top: 40px; padding-bottom: 20px; }
    
    .grid { 
        grid-template-columns: 1fr; 
        gap: 16px; 
        margin-top: 24px;
    }
    
    .card { padding: 20px; }
    
    .card:hover, .card.active {
        box-shadow: 0 4px 15px rgba(185, 28, 28, 0.15);
    }
    .tools-layout { grid-template-columns: 1fr; gap: 20px; }
    .tools-console { height: 450px; }

    .glass-paper { padding: 32px 24px; border-radius: 16px; }
    .article-title { font-size: 28px; }
    .nav-block { padding: 0; }
}