/* === WORMHOLE DOCS - PREMIUM DESIGN SYSTEM === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(22, 22, 35, 0.8);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #22c55e;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* === ANIMATED BACKGROUND === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.wormhole-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-github {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white !important;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    gap: 60px;
}

.hero-dev {
    gap: 40px;
}

.hero-dev .hero-content {
    max-width: 640px;
}

.hero-title-dev {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Terminal Style Code Block */
.hero-terminal {
    background: #1a1a24;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    margin: 0 auto 24px;
    max-width: 420px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-code {
    padding: 16px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-x: auto;
}

.terminal-code code {
    color: #a5d6ff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.hero-privacy {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* Hero Trust Badges */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-divider {
    color: var(--border-subtle);
}

/* Feature Icon SVG */
.feature-icon-svg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent-purple);
}

/* Storage Icon */
.storage-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: var(--text-muted);
    vertical-align: middle;
}

/* Footer Privacy */
.footer-privacy {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* === HERO VISUAL - ARCHITECTURE DIAGRAM === */
.hero-visual {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.architecture-diagram {
    width: 100%;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.arch-agents {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
}

.arch-agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arch-logo {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.arch-agent-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arch-connector {
    color: var(--text-muted);
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

.arch-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.arch-hub-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: var(--accent-purple);
    font-weight: 500;
    font-size: 0.95rem;
}

.arch-hub-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arch-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.arch-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.arch-feature-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.arch-feature code {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Legacy flow diagram styles - keeping for backwards compat */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.flow-problem,
.flow-solution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.flow-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 50px;
}

.flow-problem .flow-label {
    color: var(--text-muted);
    background: rgba(113, 113, 122, 0.2);
}

.flow-solution .flow-label {
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.15);
}

.isolated-agents {
    display: flex;
    gap: 12px;
}

.iso-agent {
    position: relative;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    opacity: 0.7;
}

.iso-bubble {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #ef4444;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--accent-purple);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

.connected-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.connected-agents {
    display: flex;
    gap: 16px;
}

.conn-agent {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.conn-lines {
    width: 100px;
    height: 24px;
    position: relative;
}

.conn-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan), var(--accent-purple));
}

.conn-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent-cyan);
    transform: translateX(-50%);
}

.wormhole-hub {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    font-size: 1.75rem;
    animation: hubGlow 3s ease-in-out infinite;
}

@keyframes hubGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
    }
}

.flow-caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* === AGENT SYNC ANIMATION === */
.agent-animation-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.animation-label {
    align-self: center;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
}

.agent-sync-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 0;
    width: 100%;
}

.sync-agents {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sync-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
    transition: all 0.3s ease;
}

.sync-agent:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

.agent-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.agent-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.agent-logo img.logo-copilot {
    height: 28px;
}

.agent-emoji {
    font-size: 1.5rem;
}

.agent-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Data packets flying to wormhole */
.data-packet {
    position: absolute;
    right: -8px;
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    animation: sendPacket 3s ease-in-out infinite;
}

.packet-1 { animation-delay: 0s; }
.packet-2 { animation-delay: 1s; }
.packet-3 { animation-delay: 2s; }

@keyframes sendPacket {
    0% {
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 1;
        transform: translateX(10px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(150px) scale(0.8);
    }
    60% {
        opacity: 0;
        transform: translateX(180px) scale(0.3);
    }
    100% {
        opacity: 0;
        transform: translateX(0) scale(1);
    }
}

/* Pathway SVG connections */
.sync-pathways {
    flex: 1;
    height: 200px;
    position: relative;
    max-width: 200px;
}

.pathway-svg {
    width: 100%;
    height: 100%;
}

.pathway {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 2;
    stroke-dasharray: 8 4;
}

.path-1 {
    stroke: rgba(168, 85, 247, 0.4);
    animation: pathFlow 3s ease-in-out infinite;
    animation-delay: 0s;
}

.path-2 {
    stroke: rgba(6, 182, 212, 0.4);
    animation: pathFlow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.path-3 {
    stroke: rgba(236, 72, 153, 0.4);
    animation: pathFlow 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pathFlow {
    0%, 100% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    50% {
        stroke-dashoffset: -24;
        opacity: 1;
    }
}

/* Wormhole hub */
.sync-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wormhole-core {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(168, 85, 247, 0.6);
    animation-delay: 0s;
}

.ring-2 {
    width: 130%;
    height: 130%;
    border-color: rgba(6, 182, 212, 0.4);
    animation-delay: 0.5s;
}

.ring-3 {
    width: 160%;
    height: 160%;
    border-color: rgba(236, 72, 153, 0.2);
    animation-delay: 1s;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.hub-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Activity feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    opacity: 0;
    transform: translateX(-20px);
    animation: feedSlide 4s ease-in-out infinite;
}

.feed-1 { animation-delay: 0s; }
.feed-2 { animation-delay: 1.3s; }
.feed-3 { animation-delay: 2.6s; }

@keyframes feedSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    70% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.feed-agent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    margin-right: 8px;
}

.feed-agent img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.feed-agent.feed-copilot {
    height: 14px;
}

.feed-item code {
    color: var(--accent-cyan);
    background: none;
    padding: 0;
}

/* Responsive adjustments for animation */
@media (max-width: 700px) {
    .agent-sync-animation {
        flex-direction: column;
        gap: 32px;
    }
    
    .sync-agents {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sync-pathways {
        display: none;
    }
    
    .data-packet {
        display: none;
    }
    
    .wormhole-core {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

/* === SECTIONS === */
.section {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid-bottom {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-card code {
    background: rgba(168, 85, 247, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* === INSTALLATION === */
.installation {
    background: var(--bg-secondary);
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.step-content code {
    background: rgba(168, 85, 247, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* === CODE BLOCKS === */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
}

.code-block.large {
    font-size: 1rem;
}

.code-block code {
    color: var(--text-primary);
    background: none;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === TOOLS === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--accent-cyan);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.tool-card .code-block {
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.action-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-types span {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-purple);
}

.output-preview {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    white-space: pre-line;
}

/* === SESSIONS === */
.sessions {
    background: var(--bg-secondary);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.session-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.session-card h3 {
    margin-bottom: 16px;
}

.session-card .output-preview {
    margin-top: 12px;
}

.session-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.session-tip code {
    background: rgba(168, 85, 247, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* === CONFIG === */
.config .code-block {
    max-width: 500px;
    margin: 24px auto;
}

.storage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.storage-item {
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.storage-item code {
    margin-left: 8px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* === FOOTER === */
.footer {
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-love {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === INSTALL ALTERNATIVE === */
.install-alt {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 24px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
}

.install-alt h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.install-alt .code-block {
    display: inline-block;
    margin-bottom: 12px;
}

.install-alt p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.install-alt code {
    background: rgba(168, 85, 247, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* === UI DASHBOARD SECTION === */
.ui-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(168, 85, 247, 0.03) 50%, var(--bg-primary) 100%);
}

.ui-preview {
    max-width: 800px;
    margin: 0 auto 32px;
    perspective: 1000px;
}

.ui-window {
    background: #0d0d12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(2deg);
    transition: transform 0.3s ease;
}

.ui-window:hover {
    transform: rotateX(0deg);
}

.ui-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.ui-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ui-dot.red { background: #ff5f57; }
.ui-dot.yellow { background: #ffbd2e; }
.ui-dot.green { background: #28ca42; }

.ui-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ui-content {
    display: flex;
    min-height: 280px;
}

.ui-sidebar {
    width: 160px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-subtle);
}

.ui-nav-item {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ui-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.ui-nav-item.active {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.ui-main {
    flex: 1;
    padding: 20px;
}

.ui-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ui-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.ui-metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ui-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ui-activity {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.ui-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.ui-activity-item:last-child {
    border-bottom: none;
}

.ui-dot-small {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ui-dot-small.blue { background: #3b82f6; }
.ui-dot-small.green { background: #22c55e; }
.ui-dot-small.purple { background: #a855f7; }

.ui-launch {
    text-align: center;
    margin-bottom: 32px;
}

.ui-launch .code-block {
    display: inline-block;
    margin-bottom: 12px;
}

.ui-launch p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ui-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.ui-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ui-feature-icon {
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .install-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 8px;
    }

    .flow-diagram {
        flex-direction: column;
        gap: 24px;
        padding: 24px 16px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .isolated-agents {
        flex-wrap: wrap;
        justify-content: center;
    }

    .iso-agent {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .ui-content {
        flex-direction: column;
    }

    .ui-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .ui-nav-item {
        white-space: nowrap;
    }

    .ui-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .ui-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}