* { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #0a0e0d; --fg: #d8e4e1;
    --fg-dim: rgba(216, 228, 225, 0.6); --fg-faint: rgba(216, 228, 225, 0.35);
    --accent: #ff3d8a; --accent-dim: rgba(255, 61, 138, 0.6);
    --accent-soft: rgba(255, 61, 138, 0.2); --border: rgba(255, 61, 138, 0.2);
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); overflow-x: hidden; min-height: 100vh; position: relative; line-height: 1.5; }
  ::selection { background: var(--accent); color: var(--bg); }
  .grid-bg { position: fixed; inset: 0; background-image: linear-gradient(rgba(255,61,138,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,61,138,0.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 1; opacity: 0.5; }
  .grain { position: fixed; inset: -200%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); animation: grain 8s steps(10) infinite; pointer-events: none; opacity: 0.07; z-index: 60; mix-blend-mode: overlay; }
  @keyframes grain { 0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-10%); } 20% { transform: translate(-15%,5%); } 30% { transform: translate(7%,-25%); } 40% { transform: translate(-5%,25%); } 50% { transform: translate(-15%,10%); } 60% { transform: translate(15%,0%); } 70% { transform: translate(0%,15%); } 80% { transform: translate(3%,35%); } 90% { transform: translate(-10%,10%); } }
  .scanline { position: fixed; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,61,138,0.4), transparent); animation: scanline 10s linear infinite; pointer-events: none; z-index: 55; }
  @keyframes scanline { 0% { top: -5%; } 100% { top: 105%; } }
  .cursor-glow { position: fixed; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,61,138,0.08) 0%, transparent 70%); pointer-events: none; z-index: 50; mix-blend-mode: screen; transform: translate(-50%, -50%); transition: transform 0.08s linear; }
  .wrap { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
  @media (max-width: 640px) { .wrap { padding: 0 1.25rem; } }
  nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(10,14,13,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
  .logo { display: flex; align-items: center; gap: 0.75rem; }
  .logo-mark { width: 32px; height: 32px; position: relative; }
  .logo-mark::before, .logo-mark::after { content: ''; position: absolute; inset: 0; transform: rotate(45deg); }
  .logo-mark::before { border: 1px solid var(--accent); }
  .logo-mark::after { inset: 4px; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
  .logo-text { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.25em; font-weight: 700; }
  .nav-links { display: flex; gap: 2rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
  .nav-links a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 1rem; }
  .status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 0.1em; }
  .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,61,138,0.7); animation: pulseDot 2s infinite; }
  @keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255,61,138,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,61,138,0); } 100% { box-shadow: 0 0 0 0 rgba(255,61,138,0); } }
  @media (max-width: 768px) { .nav-links, .status { display: none; } }
  .btn { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; padding: 0.7rem 1.25rem; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; position: relative; overflow: hidden; transition: all 0.2s; }
  .btn-primary { background: var(--accent); color: var(--bg); }
  .btn-primary:hover { background: #ff1a73; }
  .btn-ghost { background: transparent; border: 1px solid var(--accent-soft); color: var(--fg); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); transition: transform 0.6s; }
  .btn:hover::after { transform: translateX(100%); }
  .btn-lg { padding: 1.1rem 2rem; font-size: 0.85rem; }
  .hero { padding: 5rem 0 6rem; position: relative; }
  .hero-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
  .hero-meta { display: flex; flex-direction: column; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
  .meta-block { opacity: 0; animation: fadeUp 0.8s forwards; }
  .meta-block:nth-child(1) { animation-delay: 0.1s; } .meta-block:nth-child(2) { animation-delay: 0.2s; } .meta-block:nth-child(3) { animation-delay: 0.3s; } .meta-block:nth-child(4) { animation-delay: 0.4s; }
  .meta-label { color: var(--accent-dim); opacity: 0.6; margin-bottom: 0.35rem; }
  .meta-value { color: var(--accent); }
  .meta-big { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 700; color: var(--fg); letter-spacing: 0; text-transform: none; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .badge { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; border: 1px solid var(--accent-soft); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
  .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulseDot 2s infinite; }
  h1.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.8s 0.3s forwards; }
  .hero-title em { font-style: italic; color: var(--accent); text-shadow: 0 0 40px rgba(255,61,138,0.3); }
  .hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--fg-dim); max-width: 42rem; margin-bottom: 2.5rem; line-height: 1.6; opacity: 0; animation: fadeUp 0.8s 0.5s forwards; }
  .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.8s 0.7s forwards; }
  .terminal { background: rgba(0,0,0,0.6); border: 1px solid var(--border); backdrop-filter: blur(8px); opacity: 0; animation: fadeUp 0.8s 0.9s forwards; }
  .terminal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--accent-dim); }
  .terminal-dots { display: flex; gap: 0.35rem; }
  .terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,61,138,0.3); }
  .terminal-dots span:nth-child(2) { background: rgba(255,61,138,0.6); }
  .terminal-dots span:nth-child(3) { background: var(--accent); }
  .terminal-body { padding: 1.25rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; }
  .terminal-body .prompt { color: var(--accent); } .terminal-body .cmd { color: var(--fg); } .terminal-body .log { color: var(--fg-dim); } .terminal-body .ok { color: var(--accent); }
  .cursor { display: inline-block; background: var(--accent); width: 0.6em; height: 1em; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
  .ticker-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.4); padding: 1rem 0; overflow: hidden; position: relative; z-index: 10; }
  .ticker { display: flex; gap: 3rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; white-space: nowrap; animation: ticker 40s linear infinite; width: max-content; }
  .ticker span { display: inline-flex; align-items: center; }
  .ticker .alt { color: var(--accent); } .ticker .neu { color: var(--fg-faint); }
  @keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
  section { padding: 6rem 0; position: relative; z-index: 10; }
  .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; align-items: end; }
  @media (max-width: 768px) { .section-head { grid-template-columns: 1fr; gap: 1.5rem; } }
  .section-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--accent-dim); opacity: 0.7; margin-bottom: 1rem; }
  .section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.95; font-weight: 400; }
  .section-title em { font-style: italic; color: var(--accent); }
  .section-sub { font-size: 1.1rem; color: var(--fg-dim); line-height: 1.6; }
  .agents-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem; }
  @media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr; } }
  .network-viz { position: relative; border: 1px solid var(--border); background: rgba(0,0,0,0.3); aspect-ratio: 1; overflow: hidden; min-height: 400px; }
  .network-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .viz-label { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--accent-dim); z-index: 2; }
  .viz-footer { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--accent-dim); z-index: 2; }
  .agent-list { display: flex; flex-direction: column; gap: 0.5rem; }
  .agent-item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--border); cursor: pointer; transition: all 0.25s; }
  .agent-item:hover, .agent-item.active { border-color: var(--accent); background: rgba(255,61,138,0.05); }
  .agent-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-dim); opacity: 0.5; width: 1.5rem; }
  .agent-info { flex: 1; min-width: 0; }
  .agent-name { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; }
  .agent-role { font-size: 0.9rem; color: var(--fg-dim); margin-top: 0.15rem; }
  .agent-status { display: flex; align-items: center; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; }
  .agent-status .s-on { color: var(--accent); display: flex; align-items: center; gap: 0.4rem; }
  .agent-status .s-off { color: var(--fg-faint); display: flex; align-items: center; gap: 0.4rem; }
  .agent-status .s-on::before, .agent-status .s-off::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
  .agent-status .s-on::before { background: var(--accent); animation: pulseDot 2s infinite; }
  .agent-status .s-off::before { background: var(--fg-faint); }
  .uptime { color: var(--fg-faint); width: 3.5rem; text-align: right; }
  .arrow { color: var(--accent-dim); }
  @media (max-width: 640px) { .agent-status { display: none; } }
  .protocol-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
  .protocol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
  @media (max-width: 900px) { .protocol-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 500px) { .protocol-grid { grid-template-columns: 1fr; } }
  .protocol-card { border-top: 1px solid var(--border); padding-top: 1.5rem; transition: all 0.25s; }
  .protocol-num { font-family: var(--font-display); font-size: 4.5rem; color: var(--accent-soft); line-height: 1; margin-bottom: 1rem; transition: color 0.25s; }
  .protocol-card:hover .protocol-num { color: var(--accent); }
  .protocol-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
  .protocol-desc { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.6; }
  .code-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
  @media (max-width: 900px) { .code-grid { grid-template-columns: 1fr; } }
  .features { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; font-family: var(--font-mono); font-size: 0.9rem; }
  .features div { display: flex; align-items: center; gap: 0.75rem; }
  .features div::before { content: '◆'; color: var(--accent); }
  .code-block { background: rgba(0,0,0,0.6); border: 1px solid var(--border); }
  .code-tabs { display: flex; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; }
  .code-tabs .tab { padding: 0.8rem 1rem; border-right: 1px solid var(--border); color: var(--fg-faint); cursor: pointer; }
  .code-tabs .tab.active { background: rgba(255,61,138,0.1); color: var(--accent); }
  .code-block pre { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; overflow-x: auto; }
  .code-block pre .kw { color: var(--accent); } .code-block pre .str { color: #e6b88f; } .code-block pre .fn { color: #c7a8ff; }
  .tools-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
  .tools-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--border); }
  @media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 500px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
  .tool-cell { background: var(--bg); padding: 1.5rem; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.25s; cursor: pointer; }
  .tool-cell:hover { background: rgba(255,61,138,0.05); }
  .tool-cat { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em; color: var(--accent-dim); transition: color 0.25s; }
  .tool-cell:hover .tool-cat { color: var(--accent); }
  .tool-n { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; transition: color 0.25s; }
  .tool-cell:hover .tool-n { color: var(--accent); }
  .tool-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--fg-faint); margin-top: 0.3rem; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
  @media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
  .stat { background: var(--bg); padding: 2rem; }
  .stat-n { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--accent); text-shadow: 0 0 40px rgba(255,61,138,0.3); margin-bottom: 0.75rem; }
  .stat-label { font-size: 0.9rem; margin-bottom: 0.25rem; }
  .stat-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--fg-faint); }
  .cta-section { border-top: 1px solid var(--border); background-image: repeating-linear-gradient(45deg, rgba(255,61,138,0.06) 0, rgba(255,61,138,0.06) 1px, transparent 1px, transparent 12px); text-align: center; padding: 8rem 0; }
  .cta-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); line-height: 0.9; margin: 1.5rem 0 2rem; }
  .cta-title em { font-style: italic; color: var(--accent); }
  .cta-sub { font-size: 1.1rem; color: var(--fg-dim); max-width: 36rem; margin: 0 auto 2.5rem; }
  .cta-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  footer { border-top: 1px solid var(--border); background: rgba(0,0,0,0.4); padding: 3rem 0; position: relative; z-index: 10; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
  @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  .footer-brand p { font-size: 0.9rem; color: var(--fg-faint); max-width: 18rem; margin-top: 1rem; line-height: 1.6; }
  .footer-col h4 { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em; color: var(--accent-dim); margin-bottom: 1rem; font-weight: 400; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-col a { color: var(--fg-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,61,138,0.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--fg-faint); }
  .footer-bottom .version { color: var(--accent); }